#405A10#405A10

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

Color values

HEX#405A10
RGBrgb(64, 90, 16)
HSLhsl(81, 70%, 21%)
HSVhsv(81, 82%, 35%)
CMYKcmyk(28.9%, 0%, 82.2%, 64.7%)
CIE-LABlab(34.88, -21.75, 36.68)
CIE-LCHlch(34.88, 42.65, 120.66°)
OKLaboklab(43.13% -0.0625 0.0812)
OKLCHoklch(43.13% 0.103 127.6)
XYZxyz(5.8641, 8.4396, 1.8102)
Luminance0.0844 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A10 #2A105A
analogous
#5A4F10 #405A10 #1B5A10
triadic
#405A10 #10405A #5A1040
tetradic
#405A10 #105A4F #2A105A #5A101B
square
#405A10 #105A4F #2A105A #5A101B
split-complementary
#405A10 #101B5A #4F105A
monochromatic
#121A05 #1B2607 #405A10 #658E19 #8AC222

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405A10#FFFFFF#000000##FFFFFF
##405A101.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)
#5F5301
Deuteranopia (green-blind)
#5B5217
Tritanopia (blue-blind)
#43554C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a10;
/* rgb */ color: rgb(64, 90, 16);
/* oklch */ color: oklch(43.1% 0.103 127.6);
Tailwind
colors: {
  custom: {
    50: '#788855',
    500: '#405a10',
    950: '#000000',
  },
}
SCSS
$custom: #405a10;
$custom-light: #788855;
$custom-dark: #000000;
JSON
{
  "hex": "#405a10",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 16
  },
  "hsl": {
    "h": 81.081,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.43129,
    "c": 0.10251,
    "h": 127.6
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

primary
#405A10
secondary
#553393
accent
#3BED7A
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405A10

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

Preview Lab → · Contrast checker → · Palette generator →

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