#405A0F#405A0F

#405A0F is a dark, moderate yellow-green. Relative luminance 0.084; OKLCH L 43.1% C 0.103 H 127.5°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#405A0F
RGBrgb(64, 90, 15)
HSLhsl(81, 71%, 21%)
HSVhsv(81, 83%, 35%)
CMYKcmyk(28.9%, 0%, 83.3%, 64.7%)
CIE-LABlab(34.88, -21.80, 37.04)
CIE-LCHlch(34.88, 42.98, 120.49°)
OKLaboklab(43.12% -0.0628 0.0818)
OKLCHoklch(43.12% 0.103 127.5)
XYZxyz(5.8568, 8.4367, 1.7717)
Luminance0.0844 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A0F #290F5A
analogous
#5A4E0F #405A0F #1A5A0F
triadic
#405A0F #0F405A #5A0F40
tetradic
#405A0F #0F5A4E #290F5A #5A0F1A
square
#405A0F #0F5A4E #290F5A #5A0F1A
split-complementary
#405A0F #0F1A5A #4E0F5A
monochromatic
#131A04 #1B2606 #405A0F #658E18 #8BC320

Accessibility & contrast

On white

7.81
#405A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #405A0F
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A0F#FFFFFF#000000##FFFFFF
##405A0F1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F5300
Deuteranopia (green-blind)
#5B5217
Tritanopia (blue-blind)
#43554C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a0f;
/* rgb */ color: rgb(64, 90, 15);
/* oklch */ color: oklch(43.1% 0.103 127.5);
Tailwind
colors: {
  custom: {
    50: '#788854',
    500: '#405a0f',
    950: '#000000',
  },
}
SCSS
$custom: #405a0f;
$custom-light: #788854;
$custom-dark: #000000;
JSON
{
  "hex": "#405a0f",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 15
  },
  "hsl": {
    "h": 80.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.43122,
    "c": 0.1031,
    "h": 127.5
  },
  "luminance": 0.08437
}

Semantic roles & 50–950 ramp

primary
#405A0F
secondary
#533194
accent
#3AEE78
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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