#407F12#407F12

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

Color values

HEX#407F12
RGBrgb(64, 127, 18)
HSLhsl(95, 75%, 28%)
HSVhsv(95, 86%, 50%)
CMYKcmyk(49.6%, 0%, 85.8%, 50.2%)
CIE-LABlab(47.38, -38.63, 47.53)
CIE-LCHlch(47.38, 61.25, 129.10°)
OKLaboklab(53.36% -0.1079 0.1044)
OKLCHoklch(53.36% 0.15 135.9)
XYZxyz(9.8126, 16.3117, 3.2036)
Luminance0.1631 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F12 #51127F
analogous
#767F12 #407F12 #127F1B
triadic
#407F12 #12407F #7F1240
tetradic
#407F12 #12767F #51127F #7F1B12
square
#407F12 #12767F #51127F #7F1B12
split-complementary
#407F12 #1B127F #7F1276
monochromatic
#0E1B04 #25490A #407F12 #5BB51A #77E12B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407F12#FFFFFF#000000##FFFFFF
##407F121.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: #407f12;
/* rgb */ color: rgb(64, 127, 18);
/* oklch */ color: oklch(53.4% 0.150 135.9);
Tailwind
colors: {
  custom: {
    50: '#7ca55c',
    500: '#407f12',
    950: '#000000',
  },
}
SCSS
$custom: #407f12;
$custom-light: #7ca55c;
$custom-dark: #000000;
JSON
{
  "hex": "#407f12",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 94.679,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53357,
    "c": 0.15012,
    "h": 135.9
  },
  "luminance": 0.16312
}

Semantic roles & 50–950 ramp

primary
#407F12
secondary
#8038B5
accent
#36F2A3
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407F12

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

Preview Lab → · Contrast checker → · Palette generator →

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