#406C15#406C15

#406C15 is a mid, vivid yellow-green. Relative luminance 0.119; OKLCH L 48.1% C 0.124 H 133.2°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#406C15
RGBrgb(64, 108, 21)
HSLhsl(90, 67%, 25%)
HSVhsv(90, 81%, 42%)
CMYKcmyk(40.7%, 0%, 80.6%, 57.6%)
CIE-LABlab(41.01, -30.20, 40.70)
CIE-LCHlch(41.01, 50.68, 126.57°)
OKLaboklab(48.13% -0.085 0.0905)
OKLCHoklch(48.13% 0.124 133.2)
XYZxyz(7.6122, 11.8689, 2.5992)
Luminance0.1187 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406C15 #41156C
analogous
#6B6C15 #406C15 #156C16
triadic
#406C15 #15406C #6C1540
tetradic
#406C15 #156B6C #41156C #6C1615
square
#406C15 #156B6C #41156C #6C1615
split-complementary
#406C15 #16156C #6C156B
monochromatic
#0F1A05 #22390B #406C15 #5E9F1F #7DD229

Accessibility & contrast

On white

6.22
#406C15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#406C15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406C15
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406C15#FFFFFF#000000##FFFFFF
##406C151.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716302
Deuteranopia (green-blind)
#6B5F1E
Tritanopia (blue-blind)
#40675C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #406c15;
/* rgb */ color: rgb(64, 108, 21);
/* oklch */ color: oklch(48.1% 0.124 133.2);
Tailwind
colors: {
  custom: {
    50: '#79965a',
    500: '#406c15',
    950: '#000000',
  },
}
SCSS
$custom: #406c15;
$custom-light: #79965a;
$custom-dark: #000000;
JSON
{
  "hex": "#406c15",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 21
  },
  "hsl": {
    "h": 90.345,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.48132,
    "c": 0.12419,
    "h": 133.2
  },
  "luminance": 0.11869
}

Semantic roles & 50–950 ramp

primary
#406C15
secondary
#6F3AA3
accent
#3DEA95
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406C15

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

Preview Lab → · Contrast checker → · Palette generator →

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