#405A12#405A12

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

Color values

HEX#405A12
RGBrgb(64, 90, 18)
HSLhsl(82, 67%, 21%)
HSVhsv(82, 80%, 35%)
CMYKcmyk(28.9%, 0%, 80%, 64.7%)
CIE-LABlab(34.89, -21.63, 35.94)
CIE-LCHlch(34.89, 41.95, 121.04°)
OKLaboklab(43.14% -0.062 0.08)
OKLCHoklch(43.14% 0.101 127.8)
XYZxyz(5.8797, 8.4459, 1.8926)
Luminance0.0845 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A12 #2C125A
analogous
#5A5012 #405A12 #1C5A12
triadic
#405A12 #12405A #5A1240
tetradic
#405A12 #125A50 #2C125A #5A121C
square
#405A12 #125A50 #2C125A #5A121C
split-complementary
#405A12 #121C5A #50125A
monochromatic
#121A05 #1C2708 #405A12 #648D1C #89C026

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405A12#FFFFFF#000000##FFFFFF
##405A121.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)
#5F5304
Deuteranopia (green-blind)
#5B5219
Tritanopia (blue-blind)
#43564C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a12;
/* rgb */ color: rgb(64, 90, 18);
/* oklch */ color: oklch(43.1% 0.101 127.8);
Tailwind
colors: {
  custom: {
    50: '#788856',
    500: '#405a12',
    950: '#000000',
  },
}
SCSS
$custom: #405a12;
$custom-light: #788856;
$custom-dark: #000000;
JSON
{
  "hex": "#405a12",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 81.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43143,
    "c": 0.10125,
    "h": 127.8
  },
  "luminance": 0.08446
}

Semantic roles & 50–950 ramp

primary
#405A12
secondary
#573593
accent
#3EEA7C
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B03
muted
#7B7C78

Preview Lab

Preview with #405A12

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

Preview Lab → · Contrast checker → · Palette generator →

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