#407815#407815

#407815 is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.4% C 0.140 H 135.3°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#407815
RGBrgb(64, 120, 21)
HSLhsl(94, 70%, 28%)
HSVhsv(94, 83%, 47%)
CMYKcmyk(46.7%, 0%, 82.5%, 52.9%)
CIE-LABlab(45.05, -35.53, 44.51)
CIE-LCHlch(45.05, 56.96, 128.60°)
OKLaboklab(51.44% -0.0994 0.0985)
OKLCHoklch(51.44% 0.14 135.3)
XYZxyz(8.9660, 14.5765, 3.0504)
Luminance0.1458 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407815 #4D1578
analogous
#727815 #407815 #15781B
triadic
#407815 #154078 #781540
tetradic
#407815 #157278 #4D1578 #781B15
square
#407815 #157278 #4D1578 #781B15
split-complementary
#407815 #1B1578 #781572
monochromatic
#0E1A05 #24440C #407815 #5CAC1E #78DA2D

Accessibility & contrast

On white

5.36
#407815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#407815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407815
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407815#FFFFFF#000000##FFFFFF
##4078151.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6D00
Deuteranopia (green-blind)
#756920
Tritanopia (blue-blind)
#3E7366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #407815;
/* rgb */ color: rgb(64, 120, 21);
/* oklch */ color: oklch(51.4% 0.140 135.3);
Tailwind
colors: {
  custom: {
    50: '#7b9f5c',
    500: '#407815',
    950: '#000000',
  },
}
SCSS
$custom: #407815;
$custom-light: #7b9f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#407815",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 93.939,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.51445,
    "c": 0.13994,
    "h": 135.3
  },
  "luminance": 0.14577
}

Semantic roles & 50–950 ramp

primary
#407815
secondary
#7C3BAE
accent
#3BEDA0
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407815

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

Preview Lab → · Contrast checker → · Palette generator →

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