#407512#407512

#407512 is a mid, vivid yellow-green. Relative luminance 0.139; OKLCH L 50.6% C 0.138 H 134.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#407512
RGBrgb(64, 117, 18)
HSLhsl(92, 73%, 26%)
HSVhsv(92, 85%, 46%)
CMYKcmyk(45.3%, 0%, 84.6%, 54.1%)
CIE-LABlab(44.03, -34.39, 44.50)
CIE-LCHlch(44.03, 56.24, 127.70°)
OKLaboklab(50.6% -0.0965 0.098)
OKLCHoklch(50.6% 0.138 134.6)
XYZxyz(8.5846, 13.8557, 2.7942)
Luminance0.1386 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407512 #471275
analogous
#727512 #407512 #127516
triadic
#407512 #124075 #751240
tetradic
#407512 #127275 #471275 #751612
square
#407512 #127275 #471275 #751612
split-complementary
#407512 #161275 #751272
monochromatic
#0F1B04 #23400A #407512 #5DAA1A #7ADD24

Accessibility & contrast

On white

5.57
#407512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#407512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407512
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407512#FFFFFF#000000##FFFFFF
##4075121.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#73671E
Tritanopia (blue-blind)
#3F7063
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #407512;
/* rgb */ color: rgb(64, 117, 18);
/* oklch */ color: oklch(50.6% 0.138 134.6);
Tailwind
colors: {
  custom: {
    50: '#7a9d5a',
    500: '#407512',
    950: '#000000',
  },
}
SCSS
$custom: #407512;
$custom-light: #7a9d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#407512",
  "rgb": {
    "r": 64,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 92.121,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.506,
    "c": 0.13755,
    "h": 134.6
  },
  "luminance": 0.13856
}

Semantic roles & 50–950 ramp

primary
#407512
secondary
#7637AC
accent
#38F09A
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407512

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

Preview Lab → · Contrast checker → · Palette generator →

#407512 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva