#407D13#407D13

#407D13 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.8% C 0.147 H 135.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#407D13
RGBrgb(64, 125, 19)
HSLhsl(95, 74%, 28%)
HSVhsv(95, 85%, 49%)
CMYKcmyk(48.8%, 0%, 84.8%, 51%)
CIE-LABlab(46.72, -37.75, 46.65)
CIE-LCHlch(46.72, 60.02, 128.98°)
OKLaboklab(52.81% -0.1055 0.1027)
OKLCHoklch(52.81% 0.147 135.8)
XYZxyz(9.5653, 15.8036, 3.1623)
Luminance0.1580 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D13 #50137D
analogous
#757D13 #407D13 #137D1B
triadic
#407D13 #13407D #7D1340
tetradic
#407D13 #13757D #50137D #7D1B13
square
#407D13 #13757D #50137D #7D1B13
split-complementary
#407D13 #1B137D #7D1375
monochromatic
#0E1B04 #25480B #407D13 #5BB21B #78DF2C

Accessibility & contrast

On white

5.05
#407D13 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#407D13 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D13
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D13#FFFFFF#000000##FFFFFF
##407D131.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#3E786A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d13;
/* rgb */ color: rgb(64, 125, 19);
/* oklch */ color: oklch(52.8% 0.147 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ca35c',
    500: '#407d13',
    950: '#000000',
  },
}
SCSS
$custom: #407d13;
$custom-light: #7ca35c;
$custom-dark: #000000;
JSON
{
  "hex": "#407d13",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 19
  },
  "hsl": {
    "h": 94.528,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52812,
    "c": 0.1472,
    "h": 135.8
  },
  "luminance": 0.15804
}

Semantic roles & 50–950 ramp

primary
#407D13
secondary
#7F39B3
accent
#38F0A2
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407D13

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

Preview Lab → · Contrast checker → · Palette generator →

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