#407215#407215

#407215 is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.8% C 0.132 H 134.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#407215
RGBrgb(64, 114, 21)
HSLhsl(92, 69%, 26%)
HSVhsv(92, 82%, 45%)
CMYKcmyk(43.9%, 0%, 81.6%, 55.3%)
CIE-LABlab(43.03, -32.91, 42.62)
CIE-LCHlch(43.03, 53.85, 127.67°)
OKLaboklab(49.79% -0.0923 0.0945)
OKLCHoklch(49.79% 0.132 134.3)
XYZxyz(8.2669, 13.1783, 2.8174)
Luminance0.1318 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407215 #471572
analogous
#6F7215 #407215 #157219
triadic
#407215 #154072 #721540
tetradic
#407215 #156F72 #471572 #721915
square
#407215 #156F72 #471572 #721915
split-complementary
#407215 #191572 #72156F
monochromatic
#0F1A05 #233E0B #407215 #5DA61F #7AD82A

Accessibility & contrast

On white

5.78
#407215 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#407215 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407215
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407215#FFFFFF#000000##FFFFFF
##4072151.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#70641F
Tritanopia (blue-blind)
#3F6D61
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407215;
/* rgb */ color: rgb(64, 114, 21);
/* oklch */ color: oklch(49.8% 0.132 134.3);
Tailwind
colors: {
  custom: {
    50: '#7a9b5b',
    500: '#407215',
    950: '#000000',
  },
}
SCSS
$custom: #407215;
$custom-light: #7a9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#407215",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 92.258,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.4979,
    "c": 0.13215,
    "h": 134.3
  },
  "luminance": 0.13179
}

Semantic roles & 50–950 ramp

primary
#407215
secondary
#763BA8
accent
#3CEC9B
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407215

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

Preview Lab → · Contrast checker → · Palette generator →

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