#408317#408317

#408317 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.5% C 0.153 H 136.8°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#408317
RGBrgb(64, 131, 23)
HSLhsl(97, 70%, 30%)
HSVhsv(97, 82%, 51%)
CMYKcmyk(51.1%, 0%, 82.4%, 48.6%)
CIE-LABlab(48.74, -40.02, 47.32)
CIE-LCHlch(48.74, 61.97, 130.22°)
OKLaboklab(54.48% -0.1113 0.1047)
OKLCHoklch(54.48% 0.153 136.8)
XYZxyz(10.3850, 17.3837, 3.6186)
Luminance0.1738 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408317 #5A1783
analogous
#768317 #408317 #178324
triadic
#408317 #174083 #831740
tetradic
#408317 #177683 #5A1783 #832417
square
#408317 #177683 #5A1783 #832417
split-complementary
#408317 #241783 #831776
monochromatic
#0D1B05 #274F0E #408317 #59B720 #76DC38

Accessibility & contrast

On white

4.69
#408317 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#408317 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408317
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408317#FFFFFF#000000##FFFFFF
##4083171.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#7F7224
Tritanopia (blue-blind)
#3C7E6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #408317;
/* rgb */ color: rgb(64, 131, 23);
/* oklch */ color: oklch(54.5% 0.153 136.8);
Tailwind
colors: {
  custom: {
    50: '#7ca85e',
    500: '#408317',
    950: '#000000',
  },
}
SCSS
$custom: #408317;
$custom-light: #7ca85e;
$custom-dark: #000000;
JSON
{
  "hex": "#408317",
  "rgb": {
    "r": 64,
    "g": 131,
    "b": 23
  },
  "hsl": {
    "h": 97.222,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.54483,
    "c": 0.15281,
    "h": 136.8
  },
  "luminance": 0.17384
}

Semantic roles & 50–950 ramp

primary
#408317
secondary
#893FB7
accent
#3BEDA9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408317

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

Preview Lab → · Contrast checker → · Palette generator →

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