#408015#408015

#408015 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.6% C 0.150 H 136.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#408015
RGBrgb(64, 128, 21)
HSLhsl(96, 72%, 29%)
HSVhsv(96, 84%, 50%)
CMYKcmyk(50%, 0%, 83.6%, 49.8%)
CIE-LABlab(47.73, -38.90, 46.99)
CIE-LCHlch(47.73, 61.00, 129.62°)
OKLaboklab(53.65% -0.1084 0.1037)
OKLCHoklch(53.65% 0.15 136.3)
XYZxyz(9.9686, 16.5818, 3.3846)
Luminance0.1658 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408015 #551580
analogous
#768015 #408015 #158020
triadic
#408015 #154080 #801540
tetradic
#408015 #157680 #551580 #802015
square
#408015 #157680 #551580 #802015
split-complementary
#408015 #201580 #801576
monochromatic
#0D1A04 #264B0C #408015 #5AB51E #77DD32

Accessibility & contrast

On white

4.87
#408015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#408015 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408015
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408015#FFFFFF#000000##FFFFFF
##4080151.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#7C6F22
Tritanopia (blue-blind)
#3D7B6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #408015;
/* rgb */ color: rgb(64, 128, 21);
/* oklch */ color: oklch(53.6% 0.150 136.3);
Tailwind
colors: {
  custom: {
    50: '#7ca55d',
    500: '#408015',
    950: '#000000',
  },
}
SCSS
$custom: #408015;
$custom-light: #7ca55d;
$custom-dark: #000000;
JSON
{
  "hex": "#408015",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 95.888,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53648,
    "c": 0.15004,
    "h": 136.3
  },
  "luminance": 0.16582
}

Semantic roles & 50–950 ramp

primary
#408015
secondary
#843CB5
accent
#39EFA6
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408015

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

Preview Lab → · Contrast checker → · Palette generator →

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