#407B15#407B15

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

Color values

HEX#407B15
RGBrgb(64, 123, 21)
HSLhsl(95, 71%, 28%)
HSVhsv(95, 83%, 48%)
CMYKcmyk(48%, 0%, 82.9%, 51.8%)
CIE-LABlab(46.06, -36.81, 45.45)
CIE-LCHlch(46.06, 58.49, 129.01°)
OKLaboklab(52.27% -0.1028 0.1005)
OKLCHoklch(52.27% 0.144 135.7)
XYZxyz(9.3324, 15.3095, 3.1726)
Luminance0.1531 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B15 #50157B
analogous
#737B15 #407B15 #157B1D
triadic
#407B15 #15407B #7B1540
tetradic
#407B15 #15737B #50157B #7B1D15
square
#407B15 #15737B #50157B #7B1D15
split-complementary
#407B15 #1D157B #7B1573
monochromatic
#0E1A04 #25470C #407B15 #5BAF1E #78DB2F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407B15#FFFFFF#000000##FFFFFF
##407B151.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)
#786B21
Tritanopia (blue-blind)
#3E7668
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b15;
/* rgb */ color: rgb(64, 123, 21);
/* oklch */ color: oklch(52.3% 0.144 135.7);
Tailwind
colors: {
  custom: {
    50: '#7ba25c',
    500: '#407b15',
    950: '#000000',
  },
}
SCSS
$custom: #407b15;
$custom-light: #7ba25c;
$custom-dark: #000000;
JSON
{
  "hex": "#407b15",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 94.706,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52272,
    "c": 0.14376,
    "h": 135.7
  },
  "luminance": 0.1531
}

Semantic roles & 50–950 ramp

primary
#407B15
secondary
#7F3BB0
accent
#3AEEA2
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407B15

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

Preview Lab → · Contrast checker → · Palette generator →

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