#408D19#408D19

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

Color values

HEX#408D19
RGBrgb(64, 141, 25)
HSLhsl(100, 70%, 33%)
HSVhsv(100, 82%, 55%)
CMYKcmyk(54.6%, 0%, 82.3%, 44.7%)
CIE-LABlab(52.07, -43.88, 49.80)
CIE-LCHlch(52.07, 66.38, 131.39°)
OKLaboklab(57.23% -0.1216 0.1102)
OKLCHoklch(57.23% 0.164 137.8)
XYZxyz(11.8143, 20.2090, 4.1977)
Luminance0.2021 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408D19 #66198D
analogous
#7A8D19 #408D19 #198D2C
triadic
#408D19 #19408D #8D1940
tetradic
#408D19 #197A8D #66198D #8D2C19
square
#408D19 #197A8D #66198D #8D2C19
split-complementary
#408D19 #2C198D #8D197A
monochromatic
#112507 #285910 #408D19 #58C122 #77DE43

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##408D19#FFFFFF#000000##000000
##408D191.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)
#887A27
Tritanopia (blue-blind)
#3A8878
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #408d19;
/* rgb */ color: rgb(64, 141, 25);
/* oklch */ color: oklch(57.2% 0.164 137.8);
Tailwind
colors: {
  custom: {
    50: '#7eaf61',
    500: '#408d19',
    950: '#000000',
  },
}
SCSS
$custom: #408d19;
$custom-light: #7eaf61;
$custom-dark: #000000;
JSON
{
  "hex": "#408d19",
  "rgb": {
    "r": 64,
    "g": 141,
    "b": 25
  },
  "hsl": {
    "h": 99.828,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57232,
    "c": 0.1641,
    "h": 137.8
  },
  "luminance": 0.2021
}

Semantic roles & 50–950 ramp

primary
#408D19
secondary
#9543BF
accent
#3BEDB1
background
#F8FAF6
surface
#EFF4EB
border
#CACEC6
text
#0B1005
muted
#7C7F7A

Preview Lab

Preview with #408D19

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

Preview Lab → · Contrast checker → · Palette generator →

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