#407015#407015

#407015 is a mid, vivid yellow-green. Relative luminance 0.127; OKLCH L 49.2% C 0.130 H 134.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#407015
RGBrgb(64, 112, 21)
HSLhsl(92, 68%, 26%)
HSVhsv(92, 81%, 44%)
CMYKcmyk(42.9%, 0%, 81.2%, 56.1%)
CIE-LABlab(42.36, -32.02, 41.99)
CIE-LCHlch(42.36, 52.80, 127.33°)
OKLaboklab(49.24% -0.0899 0.0932)
OKLCHoklch(49.24% 0.13 134)
XYZxyz(8.0437, 12.7321, 2.7430)
Luminance0.1273 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407015 #451570
analogous
#6D7015 #407015 #157017
triadic
#407015 #154070 #701540
tetradic
#407015 #156D70 #451570 #701715
square
#407015 #156D70 #451570 #701715
split-complementary
#407015 #171570 #70156D
monochromatic
#0F1A05 #233C0B #407015 #5DA41F #7BD729

Accessibility & contrast

On white

5.92
#407015 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#407015 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407015
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407015#FFFFFF#000000##FFFFFF
##4070151.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756600
Deuteranopia (green-blind)
#6E631F
Tritanopia (blue-blind)
#406B5F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #407015;
/* rgb */ color: rgb(64, 112, 21);
/* oklch */ color: oklch(49.2% 0.130 134.0);
Tailwind
colors: {
  custom: {
    50: '#7a995b',
    500: '#407015',
    950: '#000000',
  },
}
SCSS
$custom: #407015;
$custom-light: #7a995b;
$custom-dark: #000000;
JSON
{
  "hex": "#407015",
  "rgb": {
    "r": 64,
    "g": 112,
    "b": 21
  },
  "hsl": {
    "h": 91.648,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.49237,
    "c": 0.12952,
    "h": 134
  },
  "luminance": 0.12732
}

Semantic roles & 50–950 ramp

primary
#407015
secondary
#733BA6
accent
#3DEB99
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407015

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

Preview Lab → · Contrast checker → · Palette generator →

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