#406B24#406B24

#406B24 is a mid, moderate yellow-green. Relative luminance 0.117; OKLCH L 48.0% C 0.112 H 135.1°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#406B24
RGBrgb(64, 107, 36)
HSLhsl(96, 50%, 28%)
HSVhsv(96, 66%, 42%)
CMYKcmyk(40.2%, 0%, 66.4%, 58%)
CIE-LABlab(40.79, -28.52, 34.15)
CIE-LCHlch(40.79, 44.49, 129.86°)
OKLaboklab(47.99% -0.0792 0.079)
OKLCHoklch(47.99% 0.112 135.1)
XYZxyz(7.6903, 11.7324, 3.5281)
Luminance0.1173 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406B24 #4F246B
analogous
#636B24 #406B24 #246B2B
triadic
#406B24 #24406B #6B2440
tetradic
#406B24 #24636B #4F246B #6B2B24
square
#406B24 #24636B #4F246B #6B2B24
split-complementary
#406B24 #2B246B #6B2463
monochromatic
#0E1708 #253D15 #406B24 #5B9933 #78C148

Accessibility & contrast

On white

6.28
#406B24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#406B24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406B24
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406B24#FFFFFF#000000##FFFFFF
##406B241.006.283.356.28
#FFFFFF6.281.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F621C
Deuteranopia (green-blind)
#695F2A
Tritanopia (blue-blind)
#3F675C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #406b24;
/* rgb */ color: rgb(64, 107, 36);
/* oklch */ color: oklch(48.0% 0.112 135.1);
Tailwind
colors: {
  custom: {
    50: '#789562',
    500: '#406b24',
    950: '#000000',
  },
}
SCSS
$custom: #406b24;
$custom-light: #789562;
$custom-dark: #000000;
JSON
{
  "hex": "#406b24",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 36
  },
  "hsl": {
    "h": 96.338,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.47991,
    "c": 0.11189,
    "h": 135.1
  },
  "luminance": 0.11733
}

Semantic roles & 50–950 ramp

primary
#406B24
secondary
#7E4D9E
accent
#4FD9A3
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #406B24

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#406B24 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva