#408017#408017

#408017 is a mid, vivid yellow-green. Relative luminance 0.166; OKLCH L 53.7% C 0.149 H 136.4°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#408017
RGBrgb(64, 128, 23)
HSLhsl(97, 70%, 30%)
HSVhsv(97, 82%, 50%)
CMYKcmyk(50%, 0%, 82%, 49.8%)
CIE-LABlab(47.74, -38.79, 46.39)
CIE-LCHlch(47.74, 60.47, 129.90°)
OKLaboklab(53.66% -0.108 0.1027)
OKLCHoklch(53.66% 0.149 136.4)
XYZxyz(9.9879, 16.5895, 3.4862)
Luminance0.1659 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408017 #571780
analogous
#758017 #408017 #178022
triadic
#408017 #174080 #801740
tetradic
#408017 #177580 #571780 #802217
square
#408017 #177580 #571780 #802217
split-complementary
#408017 #221780 #801775
monochromatic
#0D1A05 #264C0E #408017 #5AB420 #77DB36

Accessibility & contrast

On white

4.86
#408017 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #408017
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408017#FFFFFF#000000##FFFFFF
##4080171.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #408017;
/* rgb */ color: rgb(64, 128, 23);
/* oklch */ color: oklch(53.7% 0.149 136.4);
Tailwind
colors: {
  custom: {
    50: '#7ca55e',
    500: '#408017',
    950: '#000000',
  },
}
SCSS
$custom: #408017;
$custom-light: #7ca55e;
$custom-dark: #000000;
JSON
{
  "hex": "#408017",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 96.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53659,
    "c": 0.14908,
    "h": 136.4
  },
  "luminance": 0.1659
}

Semantic roles & 50–950 ramp

primary
#408017
secondary
#863EB4
accent
#3BECA7
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408017

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

Preview Lab → · Contrast checker → · Palette generator →

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