#407817#407817

#407817 is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.5% C 0.139 H 135.4°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#407817
RGBrgb(64, 120, 23)
HSLhsl(95, 68%, 28%)
HSVhsv(95, 81%, 47%)
CMYKcmyk(46.7%, 0%, 80.8%, 52.9%)
CIE-LABlab(45.06, -35.41, 43.86)
CIE-LCHlch(45.06, 56.38, 128.92°)
OKLaboklab(51.46% -0.0989 0.0975)
OKLCHoklch(51.46% 0.139 135.4)
XYZxyz(8.9853, 14.5842, 3.1520)
Luminance0.1459 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407817 #4F1778
analogous
#707817 #407817 #17781E
triadic
#407817 #174078 #781740
tetradic
#407817 #177078 #4F1778 #781E17
square
#407817 #177078 #4F1778 #781E17
split-complementary
#407817 #1E1778 #781770
monochromatic
#0E1A05 #25450D #407817 #5BAB21 #78D832

Accessibility & contrast

On white

5.36
#407817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#407817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407817
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407817#FFFFFF#000000##FFFFFF
##4078171.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6D00
Deuteranopia (green-blind)
#756922
Tritanopia (blue-blind)
#3E7366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #407817;
/* rgb */ color: rgb(64, 120, 23);
/* oklch */ color: oklch(51.5% 0.139 135.4);
Tailwind
colors: {
  custom: {
    50: '#7b9f5d',
    500: '#407817',
    950: '#000000',
  },
}
SCSS
$custom: #407817;
$custom-light: #7b9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#407817",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 23
  },
  "hsl": {
    "h": 94.639,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51457,
    "c": 0.13889,
    "h": 135.4
  },
  "luminance": 0.14585
}

Semantic roles & 50–950 ramp

primary
#407817
secondary
#7E3EAD
accent
#3DEBA1
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407817

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

Preview Lab → · Contrast checker → · Palette generator →

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