#405111#405111

#405111 is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.7% C 0.089 H 123.5°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#405111
RGBrgb(64, 81, 17)
HSLhsl(76, 65%, 19%)
HSVhsv(76, 79%, 32%)
CMYKcmyk(21%, 0%, 79%, 68.2%)
CIE-LABlab(31.84, -16.91, 33.37)
CIE-LCHlch(31.84, 37.41, 116.88°)
OKLaboklab(40.67% -0.0492 0.0744)
OKLCHoklch(40.67% 0.089 123.5)
XYZxyz(5.1580, 7.0153, 1.6126)
Luminance0.0702 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405111 #221151
analogous
#514211 #405111 #205111
triadic
#405111 #114051 #511140
tetradic
#405111 #115142 #221151 #511120
square
#405111 #115142 #221151 #511120
split-complementary
#405111 #112051 #421151
monochromatic
#141905 #181E06 #405111 #68841C #90B626

Accessibility & contrast

On white

8.74
#405111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#405111 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405111
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405111#FFFFFF#000000##FFFFFF
##4051111.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B06
Deuteranopia (green-blind)
#544B17
Tritanopia (blue-blind)
#444D45
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #405111;
/* rgb */ color: rgb(64, 81, 17);
/* oklch */ color: oklch(40.7% 0.089 123.5);
Tailwind
colors: {
  custom: {
    50: '#778154',
    500: '#405111',
    950: '#000000',
  },
}
SCSS
$custom: #405111;
$custom-light: #778154;
$custom-dark: #000000;
JSON
{
  "hex": "#405111",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 75.938,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.40667,
    "c": 0.08926,
    "h": 123.5
  },
  "luminance": 0.07015
}

Semantic roles & 50–950 ramp

primary
#405111
secondary
#4B348A
accent
#40E86C
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #405111

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

Preview Lab → · Contrast checker → · Palette generator →

#405111 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva