#407F13#407F13

#407F13 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.4% C 0.150 H 136.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#407F13
RGBrgb(64, 127, 19)
HSLhsl(95, 74%, 29%)
HSVhsv(95, 85%, 50%)
CMYKcmyk(49.6%, 0%, 85%, 50.2%)
CIE-LABlab(47.39, -38.59, 47.26)
CIE-LCHlch(47.39, 61.01, 129.23°)
OKLaboklab(53.36% -0.1077 0.104)
OKLCHoklch(53.36% 0.15 136)
XYZxyz(9.8210, 16.3151, 3.2476)
Luminance0.1632 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F13 #52137F
analogous
#767F13 #407F13 #137F1C
triadic
#407F13 #13407F #7F1340
tetradic
#407F13 #13767F #52137F #7F1C13
square
#407F13 #13767F #52137F #7F1C13
split-complementary
#407F13 #1C137F #7F1376
monochromatic
#0D1B04 #254A0B #407F13 #5BB41B #77E02D

Accessibility & contrast

On white

4.93
#407F13 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#407F13 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F13
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F13#FFFFFF#000000##FFFFFF
##407F131.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7C6E20
Tritanopia (blue-blind)
#3D7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f13;
/* rgb */ color: rgb(64, 127, 19);
/* oklch */ color: oklch(53.4% 0.150 136.0);
Tailwind
colors: {
  custom: {
    50: '#7ca55c',
    500: '#407f13',
    950: '#000000',
  },
}
SCSS
$custom: #407f13;
$custom-light: #7ca55c;
$custom-dark: #000000;
JSON
{
  "hex": "#407f13",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 19
  },
  "hsl": {
    "h": 95,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53362,
    "c": 0.1497,
    "h": 136
  },
  "luminance": 0.16316
}

Semantic roles & 50–950 ramp

primary
#407F13
secondary
#8139B4
accent
#37F1A3
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407F13

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

Preview Lab → · Contrast checker → · Palette generator →

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