#408011#408011

#408011 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.6% C 0.152 H 136.0°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#408011
RGBrgb(64, 128, 17)
HSLhsl(95, 77%, 28%)
HSVhsv(95, 87%, 50%)
CMYKcmyk(50%, 0%, 86.7%, 49.8%)
CIE-LABlab(47.71, -39.09, 48.10)
CIE-LCHlch(47.71, 61.98, 129.10°)
OKLaboklab(53.63% -0.1092 0.1054)
OKLCHoklch(53.63% 0.152 136)
XYZxyz(9.9344, 16.5681, 3.2047)
Luminance0.1657 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408011 #511180
analogous
#778011 #408011 #11801A
triadic
#408011 #114080 #801140
tetradic
#408011 #117780 #511180 #801A11
square
#408011 #117780 #511180 #801A11
split-complementary
#408011 #1A1180 #801177
monochromatic
#0E1B04 #254A0A #408011 #5BB618 #77E329

Accessibility & contrast

On white

4.87
#408011 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#408011 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408011
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408011#FFFFFF#000000##FFFFFF
##4080111.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857400
Deuteranopia (green-blind)
#7D6F20
Tritanopia (blue-blind)
#3D7B6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #408011;
/* rgb */ color: rgb(64, 128, 17);
/* oklch */ color: oklch(53.6% 0.152 136.0);
Tailwind
colors: {
  custom: {
    50: '#7ca55c',
    500: '#408011',
    950: '#000000',
  },
}
SCSS
$custom: #408011;
$custom-light: #7ca55c;
$custom-dark: #000000;
JSON
{
  "hex": "#408011",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 17
  },
  "hsl": {
    "h": 94.595,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53628,
    "c": 0.15176,
    "h": 136
  },
  "luminance": 0.16569
}

Semantic roles & 50–950 ramp

primary
#408011
secondary
#8037B6
accent
#35F3A2
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #408011

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

Preview Lab → · Contrast checker → · Palette generator →

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