#408217#408217

#408217 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.2% C 0.152 H 136.7°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#408217
RGBrgb(64, 130, 23)
HSLhsl(97, 70%, 30%)
HSVhsv(97, 82%, 51%)
CMYKcmyk(50.8%, 0%, 82.3%, 49%)
CIE-LABlab(48.41, -39.61, 47.01)
CIE-LCHlch(48.41, 61.47, 130.12°)
OKLaboklab(54.21% -0.1102 0.104)
OKLCHoklch(54.21% 0.152 136.7)
XYZxyz(10.2513, 17.1164, 3.5741)
Luminance0.1712 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#408217 #591782
analogous
#768217 #408217 #178223
triadic
#408217 #174082 #821740
tetradic
#408217 #177682 #591782 #822317
square
#408217 #177682 #591782 #822317
split-complementary
#408217 #231782 #821776
monochromatic
#0D1A05 #264E0E #408217 #5AB620 #77DC38

Accessibility & contrast

On white

4.75
#408217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#408217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #408217
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##408217#FFFFFF#000000##FFFFFF
##4082171.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#7E7124
Tritanopia (blue-blind)
#3C7D6E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #408217;
/* rgb */ color: rgb(64, 130, 23);
/* oklch */ color: oklch(54.2% 0.152 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ca75e',
    500: '#408217',
    950: '#000000',
  },
}
SCSS
$custom: #408217;
$custom-light: #7ca75e;
$custom-dark: #000000;
JSON
{
  "hex": "#408217",
  "rgb": {
    "r": 64,
    "g": 130,
    "b": 23
  },
  "hsl": {
    "h": 97.009,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.54208,
    "c": 0.15157,
    "h": 136.7
  },
  "luminance": 0.17117
}

Semantic roles & 50–950 ramp

primary
#408217
secondary
#883EB6
accent
#3BEDA9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #408217

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

Preview Lab → · Contrast checker → · Palette generator →

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