#408117#408117

#408117 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 53.9% C 0.150 H 136.5°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#408117
RGBrgb(64, 129, 23)
HSLhsl(97, 70%, 30%)
HSVhsv(97, 82%, 51%)
CMYKcmyk(50.4%, 0%, 82.2%, 49.4%)
CIE-LABlab(48.07, -39.20, 46.70)
CIE-LCHlch(48.07, 60.97, 130.01°)
OKLaboklab(53.93% -0.1091 0.1034)
OKLCHoklch(53.93% 0.15 136.5)
XYZxyz(10.1190, 16.8517, 3.5299)
Luminance0.1685 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408117 #581781
analogous
#758117 #408117 #178123
triadic
#408117 #174081 #811740
tetradic
#408117 #177581 #581781 #812317
square
#408117 #177581 #581781 #812317
split-complementary
#408117 #231781 #811775
monochromatic
#0D1A05 #264D0E #408117 #5AB520 #77DB37

Accessibility & contrast

On white

4.81
#408117 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#408117 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408117
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408117#FFFFFF#000000##FFFFFF
##4081171.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#7D7023
Tritanopia (blue-blind)
#3D7C6E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #408117;
/* rgb */ color: rgb(64, 129, 23);
/* oklch */ color: oklch(53.9% 0.150 136.5);
Tailwind
colors: {
  custom: {
    50: '#7ca65e',
    500: '#408117',
    950: '#000000',
  },
}
SCSS
$custom: #408117;
$custom-light: #7ca65e;
$custom-dark: #000000;
JSON
{
  "hex": "#408117",
  "rgb": {
    "r": 64,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 96.792,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53934,
    "c": 0.15032,
    "h": 136.5
  },
  "luminance": 0.16852
}

Semantic roles & 50–950 ramp

primary
#408117
secondary
#873EB5
accent
#3BEDA8
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408117

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

Preview Lab → · Contrast checker → · Palette generator →

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