#406215#406215

#406215 is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.4% C 0.110 H 130.8°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#406215
RGBrgb(64, 98, 21)
HSLhsl(86, 65%, 23%)
HSVhsv(86, 79%, 38%)
CMYKcmyk(34.7%, 0%, 78.6%, 61.6%)
CIE-LABlab(37.62, -25.45, 37.43)
CIE-LCHlch(37.62, 45.26, 124.21°)
OKLaboklab(45.37% -0.0722 0.0837)
OKLCHoklch(45.37% 0.11 130.8)
XYZxyz(6.6173, 9.8793, 2.2676)
Luminance0.0988 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406215 #371562
analogous
#625D15 #406215 #196215
triadic
#406215 #154062 #621540
tetradic
#406215 #15625D #371562 #621519
square
#406215 #15625D #371562 #621519
split-complementary
#406215 #151962 #5D1562
monochromatic
#101905 #1F300A #406215 #619420 #82C72B

Accessibility & contrast

On white

7.06
#406215 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#406215 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #406215
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406215#FFFFFF#000000##FFFFFF
##4062151.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A06
Deuteranopia (green-blind)
#62581C
Tritanopia (blue-blind)
#415E53
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #406215;
/* rgb */ color: rgb(64, 98, 21);
/* oklch */ color: oklch(45.4% 0.110 130.8);
Tailwind
colors: {
  custom: {
    50: '#788f59',
    500: '#406215',
    950: '#000000',
  },
}
SCSS
$custom: #406215;
$custom-light: #788f59;
$custom-dark: #000000;
JSON
{
  "hex": "#406215",
  "rgb": {
    "r": 64,
    "g": 98,
    "b": 21
  },
  "hsl": {
    "h": 86.494,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45371,
    "c": 0.11049,
    "h": 130.8
  },
  "luminance": 0.09879
}

Semantic roles & 50–950 ramp

primary
#406215
secondary
#643A99
accent
#40E88A
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #406215

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

Preview Lab → · Contrast checker → · Palette generator →

#406215 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva