#407B17#407B17

#407B17 is a mid, vivid yellow-green. Relative luminance 0.153; OKLCH L 52.3% C 0.143 H 135.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#407B17
RGBrgb(64, 123, 23)
HSLhsl(95, 68%, 29%)
HSVhsv(95, 81%, 48%)
CMYKcmyk(48%, 0%, 81.3%, 51.8%)
CIE-LABlab(46.07, -36.70, 44.82)
CIE-LCHlch(46.07, 57.92, 129.31°)
OKLaboklab(52.28% -0.1024 0.0995)
OKLCHoklch(52.28% 0.143 135.8)
XYZxyz(9.3517, 15.3172, 3.2742)
Luminance0.1532 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B17 #52177B
analogous
#727B17 #407B17 #177B20
triadic
#407B17 #17407B #7B1740
tetradic
#407B17 #17727B #52177B #7B2017
square
#407B17 #17727B #52177B #7B2017
split-complementary
#407B17 #20177B #7B1772
monochromatic
#0D1A05 #25470D #407B17 #5BAF21 #77D933

Accessibility & contrast

On white

5.17
#407B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#407B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407B17
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B17#FFFFFF#000000##FFFFFF
##407B171.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#786B22
Tritanopia (blue-blind)
#3E7668
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b17;
/* rgb */ color: rgb(64, 123, 23);
/* oklch */ color: oklch(52.3% 0.143 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ba25d',
    500: '#407b17',
    950: '#000000',
  },
}
SCSS
$custom: #407b17;
$custom-light: #7ba25d;
$custom-dark: #000000;
JSON
{
  "hex": "#407b17",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 95.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52284,
    "c": 0.14274,
    "h": 135.8
  },
  "luminance": 0.15318
}

Semantic roles & 50–950 ramp

primary
#407B17
secondary
#813EB0
accent
#3CEBA4
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407B17

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

Preview Lab → · Contrast checker → · Palette generator →

#407B17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva