#405A23#405A23

#405A23 is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.3% C 0.087 H 130.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#405A23
RGBrgb(64, 90, 35)
HSLhsl(88, 44%, 25%)
HSVhsv(88, 61%, 35%)
CMYKcmyk(28.9%, 0%, 61.1%, 64.7%)
CIE-LABlab(35.05, -20.14, 28.19)
CIE-LCHlch(35.05, 34.65, 125.55°)
OKLaboklab(43.32% -0.0563 0.0661)
OKLCHoklch(43.32% 0.087 130.4)
XYZxyz(6.0738, 8.5235, 2.9150)
Luminance0.0852 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A23 #3D235A
analogous
#5A5923 #405A23 #245A23
triadic
#405A23 #23405A #5A2340
tetradic
#405A23 #235A59 #3D235A #5A2324
square
#405A23 #235A59 #3D235A #5A2324
split-complementary
#405A23 #23245A #59235A
monochromatic
#101609 #212E12 #405A23 #5F8634 #7FB245

Accessibility & contrast

On white

7.76
#405A23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#405A23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405A23
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A23#FFFFFF#000000##FFFFFF
##405A231.007.762.707.76
#FFFFFF7.761.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E541D
Deuteranopia (green-blind)
#5A5227
Tritanopia (blue-blind)
#41564E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a23;
/* rgb */ color: rgb(64, 90, 35);
/* oklch */ color: oklch(43.3% 0.087 130.4);
Tailwind
colors: {
  custom: {
    50: '#778860',
    500: '#405a23',
    950: '#000000',
  },
}
SCSS
$custom: #405a23;
$custom-light: #778860;
$custom-dark: #000000;
JSON
{
  "hex": "#405a23",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 35
  },
  "hsl": {
    "h": 88.364,
    "s": 44,
    "l": 24.51
  },
  "oklch": {
    "l": 0.43319,
    "c": 0.08689,
    "h": 130.4
  },
  "luminance": 0.08524
}

Semantic roles & 50–950 ramp

primary
#405A23
secondary
#6B4B8E
accent
#54D490
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B05
muted
#7B7C79

Preview Lab

Preview with #405A23

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

Preview Lab → · Contrast checker → · Palette generator →

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