#408E12#408E12

#408E12 is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.5% C 0.168 H 137.4°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#408E12
RGBrgb(64, 142, 18)
HSLhsl(98, 78%, 31%)
HSVhsv(98, 87%, 56%)
CMYKcmyk(54.9%, 0%, 87.3%, 44.3%)
CIE-LABlab(52.37, -44.61, 51.97)
CIE-LCHlch(52.37, 68.49, 130.64°)
OKLaboklab(57.47% -0.1239 0.1138)
OKLCHoklch(57.47% 0.168 137.4)
XYZxyz(11.8961, 20.4787, 3.8981)
Luminance0.2048 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408E12 #60128E
analogous
#7E8E12 #408E12 #128E22
triadic
#408E12 #12408E #8E1240
tetradic
#408E12 #127E8E #60128E #8E2212
square
#408E12 #127E8E #60128E #8E2212
split-complementary
#408E12 #22128E #8E127E
monochromatic
#0F2104 #28580B #408E12 #58C419 #76E535

Accessibility & contrast

On white

4.12
#408E12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#408E12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408E12
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408E12#FFFFFF#000000##000000
##408E121.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#897B23
Tritanopia (blue-blind)
#3A8978
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #408e12;
/* rgb */ color: rgb(64, 142, 18);
/* oklch */ color: oklch(57.5% 0.168 137.4);
Tailwind
colors: {
  custom: {
    50: '#7eb05e',
    500: '#408e12',
    950: '#000000',
  },
}
SCSS
$custom: #408e12;
$custom-light: #7eb05e;
$custom-dark: #000000;
JSON
{
  "hex": "#408e12",
  "rgb": {
    "r": 64,
    "g": 142,
    "b": 18
  },
  "hsl": {
    "h": 97.742,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57471,
    "c": 0.16818,
    "h": 137.4
  },
  "luminance": 0.2048
}

Semantic roles & 50–950 ramp

primary
#408E12
secondary
#903AC2
accent
#34F4AD
background
#F8FAF5
surface
#EFF5EA
border
#CACFC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408E12

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

Preview Lab → · Contrast checker → · Palette generator →

#408E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva