#407B19#407B19

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

Color values

HEX#407B19
RGBrgb(64, 123, 25)
HSLhsl(96, 66%, 29%)
HSVhsv(96, 80%, 48%)
CMYKcmyk(48%, 0%, 79.7%, 51.8%)
CIE-LABlab(46.08, -36.57, 44.15)
CIE-LCHlch(46.08, 57.33, 129.64°)
OKLaboklab(52.3% -0.1019 0.0984)
OKLCHoklch(52.3% 0.142 136)
XYZxyz(9.3725, 15.3255, 3.3838)
Luminance0.1533 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B19 #54197B
analogous
#717B19 #407B19 #197B23
triadic
#407B19 #19407B #7B1940
tetradic
#407B19 #19717B #54197B #7B2319
square
#407B19 #19717B #54197B #7B2319
split-complementary
#407B19 #23197B #7B1971
monochromatic
#0D1905 #26480F #407B19 #5AAE23 #77D738

Accessibility & contrast

On white

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

On black

4.07
#407B19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##407B19#FFFFFF#000000##FFFFFF
##407B191.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807002
Deuteranopia (green-blind)
#786B24
Tritanopia (blue-blind)
#3E7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b19;
/* rgb */ color: rgb(64, 123, 25);
/* oklch */ color: oklch(52.3% 0.142 136.0);
Tailwind
colors: {
  custom: {
    50: '#7ba25e',
    500: '#407b19',
    950: '#000000',
  },
}
SCSS
$custom: #407b19;
$custom-light: #7ba25e;
$custom-dark: #000000;
JSON
{
  "hex": "#407b19",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 25
  },
  "hsl": {
    "h": 96.122,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52297,
    "c": 0.14166,
    "h": 136
  },
  "luminance": 0.15326
}

Semantic roles & 50–950 ramp

primary
#407B19
secondary
#8340AF
accent
#3FE9A5
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407B19

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

Preview Lab → · Contrast checker → · Palette generator →

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