#405B23#405B23

#405B23 is a dark, moderate yellow-green. Relative luminance 0.087; OKLCH L 43.6% C 0.088 H 130.8°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#405B23
RGBrgb(64, 91, 35)
HSLhsl(89, 44%, 25%)
HSVhsv(89, 62%, 36%)
CMYKcmyk(29.7%, 0%, 61.5%, 64.3%)
CIE-LABlab(35.39, -20.67, 28.57)
CIE-LCHlch(35.39, 35.27, 125.88°)
OKLaboklab(43.59% -0.0578 0.067)
OKLCHoklch(43.59% 0.088 130.8)
XYZxyz(6.1587, 8.6933, 2.9433)
Luminance0.0869 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B23 #3E235B
analogous
#5B5A23 #405B23 #245B23
triadic
#405B23 #23405B #5B2340
tetradic
#405B23 #235B5A #3E235B #5B2324
square
#405B23 #235B5A #3E235B #5B2324
split-complementary
#405B23 #23245B #5A235B
monochromatic
#101609 #212F12 #405B23 #5F8734 #7EB345

Accessibility & contrast

On white

7.67
#405B23 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#405B23 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405B23
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B23#FFFFFF#000000##FFFFFF
##405B231.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F551D
Deuteranopia (green-blind)
#5B5327
Tritanopia (blue-blind)
#41574F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #405b23;
/* rgb */ color: rgb(64, 91, 35);
/* oklch */ color: oklch(43.6% 0.088 130.8);
Tailwind
colors: {
  custom: {
    50: '#778960',
    500: '#405b23',
    950: '#000000',
  },
}
SCSS
$custom: #405b23;
$custom-light: #778960;
$custom-dark: #000000;
JSON
{
  "hex": "#405b23",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 35
  },
  "hsl": {
    "h": 88.929,
    "s": 44.444,
    "l": 24.706
  },
  "oklch": {
    "l": 0.43592,
    "c": 0.08846,
    "h": 130.8
  },
  "luminance": 0.08694
}

Semantic roles & 50–950 ramp

primary
#405B23
secondary
#6C4B8F
accent
#54D492
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B05
muted
#7B7C79

Preview Lab

Preview with #405B23

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

Preview Lab → · Contrast checker → · Palette generator →

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