#408815#408815

#408815 is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 55.8% C 0.160 H 137.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#408815
RGBrgb(64, 136, 21)
HSLhsl(98, 73%, 31%)
HSVhsv(98, 85%, 53%)
CMYKcmyk(52.9%, 0%, 84.6%, 46.7%)
CIE-LABlab(50.40, -42.13, 49.43)
CIE-LCHlch(50.40, 64.94, 130.44°)
OKLaboklab(55.84% -0.1171 0.1088)
OKLCHoklch(55.84% 0.16 137.1)
XYZxyz(11.0535, 18.7516, 3.7463)
Luminance0.1875 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408815 #5D1588
analogous
#798815 #408815 #158823
triadic
#408815 #154088 #881540
tetradic
#408815 #157988 #5D1588 #882315
square
#408815 #157988 #5D1588 #882315
split-complementary
#408815 #231588 #881579
monochromatic
#0E1E05 #27530D #408815 #59BD1D #76E037

Accessibility & contrast

On white

4.42
#408815 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#408815 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #408815
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408815#FFFFFF#000000##000000
##4088151.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#847624
Tritanopia (blue-blind)
#3B8373
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #408815;
/* rgb */ color: rgb(64, 136, 21);
/* oklch */ color: oklch(55.8% 0.160 137.1);
Tailwind
colors: {
  custom: {
    50: '#7dab5e',
    500: '#408815',
    950: '#000000',
  },
}
SCSS
$custom: #408815;
$custom-light: #7dab5e;
$custom-dark: #000000;
JSON
{
  "hex": "#408815",
  "rgb": {
    "r": 64,
    "g": 136,
    "b": 21
  },
  "hsl": {
    "h": 97.565,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55843,
    "c": 0.15984,
    "h": 137.1
  },
  "luminance": 0.18752
}

Semantic roles & 50–950 ramp

primary
#408815
secondary
#8C3DBC
accent
#38F0AB
background
#F8FAF5
surface
#EFF4EA
border
#CACEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #408815

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

Preview Lab → · Contrast checker → · Palette generator →

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