Skip to content

#6e7a21

a dark, vivid yellow · warm · closest name: Olive

RGB
110, 122, 33
HSL
68°, 57%, 30%
CMYK
10, 0, 73, 52
Luminance
0.1734

At a glance

Every number on this page in one read: what #6e7a21 is made of, how bright it looks, and which way it leans.

Hex
#6e7a21
Hue
68°
yellow
Saturation
57%
vivid
Lightness
30%
dark
Brightness
48%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1734
WCAG relative
Temperature
Warm
32/100 cool
Color family
Yellow
Tone
Vivid
Best ink
White
4.70:1
Closest name
Olive
ΔE2000 6.2
Where it sits
Hue68° of 360°
Saturation57%
Lightness30%
Temperature
Warm ← → Cool32% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#6e7a21
RGBrgb(110, 122, 33)
HSLhsl(68, 57%, 30%)
CMYKcmyk(10%, 0%, 73%, 52%)
LABlab(48.7 -16.9 44.7)
LCHlch(48.7 47.8 110.7)
OKLCHoklch(0.552 0.112 116.9)
Decimal7240225
Display P3color(display-p3 0.431 0.478 0.129)

Copy-ready code

/* CSS */
color: #6e7a21;
background-color: #6e7a21;
/* Tailwind (arbitrary) */
class="text-[#6e7a21] bg-[#6e7a21]"
/* SCSS */
$brand: #6e7a21;
/* SwiftUI */
Color(red: 0.431, green: 0.478, blue: 0.129)
/* Android */
Color.parseColor("#6e7a21")
/* Flutter */
Color(0xFF6E7A21)
/* Python / OpenCV (BGR) */
(33, 122, 110)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #6e7a21 · 4.70:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.70:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.47:1
AA fail · AA large pass · AAA fail
Reading the other direction: #6e7a21 as text scores 4.70:1 on white and 4.47:1 on black.

Accessibility — WCAG contrast

Aa
#6e7a21 on white: 4.70:1
AA ✓ pass · AA-large · AAA
Aa
#6e7a21 on black: 4.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #837312
deuteranopia · #817428
tritanopia · #757369

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #6e7a21 is pinned to step 800; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FAFBF4
#F5F7E9
#EAEFCD
#DEE7A7
#CEDB7B
#BECF4E
#AEC134
#91A12B
#6e7a21
#555E1D
#353A12
Base = 800Lightest = 50 · #FAFBF4Darkest = 950 · #353A12
:root {
  --brand-50: #FAFBF4;
  --brand-100: #F5F7E9;
  --brand-200: #EAEFCD;
  --brand-300: #DEE7A7;
  --brand-400: #CEDB7B;
  --brand-500: #BECF4E;
  --brand-600: #AEC134;
  --brand-700: #91A12B;
  --brand-800: #6e7a21;
  --brand-900: #555E1D;
  --brand-950: #353A12;
  --brand: #6e7a21;
  --brand-ink: #ffffff;
}

Colors that work with #6e7a21

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAFAF4
Tinted page background
Border#E7EDC0
Hairlines and dividers
Muted text#909B4B
Captions on the surface
Accent#1E297D
Second voice, not a rival
Dark variant#5A641B
Hover, pressed, headers
Light variant#F8FAEB
Selected rows, tints
Dark surface#222414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #6e7a21

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#2D217A
Analogous left#7A5A21
Analogous right#427A21
Split-complement 1#21427A
Split-complement 2#5A217A
Triadic 1#216E7A
Triadic 2#7A216E
Tetradic#217A5A

RGB percentages

Red43.1%
Green47.8%
Blue12.9%

CMYK percentages

Cyan9.8%
Magenta0.0%
Yellow73.0%
Key (black)52.2%

Color previews

#6e7a21 text on a black background

contrast 4.47:1

Card sample

#6e7a21 text on a white background

contrast 4.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #6e7a21;
Background color
Panel with #6e7a21 background
background-color: #6e7a21;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #6e7a21;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(110, 122, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(110, 122, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #6e7a21;
background: linear-gradient(135deg, #6e7a21, #337A21);

Monochromatic scale

Palettes built from #6e7a21

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#6e7a21 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#6e7a21, answered

What color is #6e7a21?

#6e7a21 is a dark vivid yellow, closest to Olive (ΔE2000 6.2). It sits at 68° on the hue wheel with 57% saturation and 30% lightness, which reads as warm.

What is the RGB value of #6e7a21?

rgb(110, 122, 33) — 110 red, 122 green and 33 blue out of 255, or 43.1% / 47.8% / 12.9% by channel.

Is #6e7a21 a light or a dark color?

It is a dark color. Relative luminance is 0.1734 and perceived brightness is 44%, so white text on it reaches 4.70:1.

Should I use black or white text on #6e7a21?

White. It scores 4.70:1 against #6e7a21, versus 4.47:1 for black — AA at any size.

What is the complementary color of #6e7a21?

#2D217A sits directly opposite on the wheel. Softer options are the split-complements #21427A and #5A217A, which give the same contrast with far less vibration.

What colors go well with #6e7a21?

For interface work: #FAFAF4 as the surface, #E7EDC0 for borders, #909B4B for secondary text, #1E297D as an accent and #5A641B for hover and pressed states. For a palette, the analogous pair #7A5A21 and #427A21 stays calm, while #2D217A is the loudest partner.

What is #6e7a21 in CMYK for printing?

cmyk(10%, 0%, 73%, 52%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #6e7a21 warm or cool?

Warm — it scores 32 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7A6521; nudged cooler, #4D7C1F.

Work with #6e7a21 in the Color Lab