#408A12#408A12

#408A12 is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.4% C 0.163 H 137.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#408A12
RGBrgb(64, 138, 18)
HSLhsl(97, 77%, 31%)
HSVhsv(97, 87%, 54%)
CMYKcmyk(53.6%, 0%, 87%, 45.9%)
CIE-LABlab(51.05, -43.06, 50.80)
CIE-LCHlch(51.05, 66.59, 130.28°)
OKLaboklab(56.38% -0.1197 0.1113)
OKLCHoklch(56.38% 0.163 137.1)
XYZxyz(11.3117, 19.3098, 3.7032)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408A12 #5C128A
analogous
#7C8A12 #408A12 #128A20
triadic
#408A12 #12408A #8A1240
tetradic
#408A12 #127C8A #5C128A #8A2012
square
#408A12 #127C8A #5C128A #8A2012
split-complementary
#408A12 #20128A #8A127C
monochromatic
#0E1E04 #27540B #408A12 #59C019 #76E432

Accessibility & contrast

On white

4.32
#408A12 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#408A12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408A12
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408A12#FFFFFF#000000##000000
##408A121.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#857722
Tritanopia (blue-blind)
#3B8575
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #408a12;
/* rgb */ color: rgb(64, 138, 18);
/* oklch */ color: oklch(56.4% 0.163 137.1);
Tailwind
colors: {
  custom: {
    50: '#7dad5e',
    500: '#408a12',
    950: '#000000',
  },
}
SCSS
$custom: #408a12;
$custom-light: #7dad5e;
$custom-dark: #000000;
JSON
{
  "hex": "#408a12",
  "rgb": {
    "r": 64,
    "g": 138,
    "b": 18
  },
  "hsl": {
    "h": 97,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56377,
    "c": 0.16344,
    "h": 137.1
  },
  "luminance": 0.19311
}

Semantic roles & 50–950 ramp

primary
#408A12
secondary
#8B39BF
accent
#34F3AA
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408A12

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

Preview Lab → · Contrast checker → · Palette generator →

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