#405A15#405A15

#405A15 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.2% C 0.099 H 128.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#405A15
RGBrgb(64, 90, 21)
HSLhsl(83, 62%, 22%)
HSVhsv(83, 77%, 35%)
CMYKcmyk(28.9%, 0%, 76.7%, 64.7%)
CIE-LABlab(34.92, -21.42, 34.75)
CIE-LCHlch(34.92, 40.82, 121.66°)
OKLaboklab(43.17% -0.0612 0.078)
OKLCHoklch(43.17% 0.099 128.1)
XYZxyz(5.9059, 8.4563, 2.0304)
Luminance0.0846 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A15 #2F155A
analogous
#5A5215 #405A15 #1E5A15
triadic
#405A15 #15405A #5A1540
tetradic
#405A15 #155A52 #2F155A #5A151E
square
#405A15 #155A52 #2F155A #5A151E
split-complementary
#405A15 #151E5A #52155A
monochromatic
#121906 #1D2809 #405A15 #638C21 #87BD2C

Accessibility & contrast

On white

7.80
#405A15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#405A15 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405A15
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A15#FFFFFF#000000##FFFFFF
##405A151.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5309
Deuteranopia (green-blind)
#5B521B
Tritanopia (blue-blind)
#42564C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a15;
/* rgb */ color: rgb(64, 90, 21);
/* oklch */ color: oklch(43.2% 0.099 128.1);
Tailwind
colors: {
  custom: {
    50: '#778857',
    500: '#405a15',
    950: '#000000',
  },
}
SCSS
$custom: #405a15;
$custom-light: #778857;
$custom-dark: #000000;
JSON
{
  "hex": "#405a15",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 21
  },
  "hsl": {
    "h": 82.609,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.43167,
    "c": 0.09919,
    "h": 128.1
  },
  "luminance": 0.08456
}

Semantic roles & 50–950 ramp

primary
#405A15
secondary
#5B3992
accent
#43E580
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405A15

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

Preview Lab → · Contrast checker → · Palette generator →

#405A15 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva