#408D13#408D13

#408D13 is a mid, vivid yellow-green. Relative luminance 0.202; OKLCH L 57.2% C 0.167 H 137.4°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#408D13
RGBrgb(64, 141, 19)
HSLhsl(98, 76%, 31%)
HSVhsv(98, 87%, 55%)
CMYKcmyk(54.6%, 0%, 86.5%, 44.7%)
CIE-LABlab(52.05, -44.18, 51.44)
CIE-LCHlch(52.05, 67.81, 130.66°)
OKLaboklab(57.2% -0.1227 0.1128)
OKLCHoklch(57.2% 0.167 137.4)
XYZxyz(11.7564, 20.1858, 3.8927)
Luminance0.2019 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D13 #60138D
analogous
#7D8D13 #408D13 #138D23
triadic
#408D13 #13408D #8D1340
tetradic
#408D13 #137D8D #60138D #8D2313
square
#408D13 #137D8D #60138D #8D2313
split-complementary
#408D13 #23138D #8D137D
monochromatic
#0F2104 #28570C #408D13 #58C31A #76E436

Accessibility & contrast

On white

4.17
#408D13 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#408D13 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408D13
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408D13#FFFFFF#000000##000000
##408D131.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#887A23
Tritanopia (blue-blind)
#3A8878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d13;
/* rgb */ color: rgb(64, 141, 19);
/* oklch */ color: oklch(57.2% 0.167 137.4);
Tailwind
colors: {
  custom: {
    50: '#7eaf5f',
    500: '#408d13',
    950: '#000000',
  },
}
SCSS
$custom: #408d13;
$custom-light: #7eaf5f;
$custom-dark: #000000;
JSON
{
  "hex": "#408d13",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 19
  },
  "hsl": {
    "h": 97.869,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57202,
    "c": 0.16663,
    "h": 137.4
  },
  "luminance": 0.20187
}

Semantic roles & 50–950 ramp

primary
#408D13
secondary
#903BC1
accent
#35F3AD
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0B1005
muted
#7C7F79

Preview Lab

Preview with #408D13

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

Preview Lab → · Contrast checker → · Palette generator →

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