#40520B#40520B

#40520B is a dark, moderate yellow-green. Relative luminance 0.071; OKLCH L 40.9% C 0.094 H 123.6°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#40520B
RGBrgb(64, 82, 11)
HSLhsl(75, 76%, 18%)
HSVhsv(75, 87%, 32%)
CMYKcmyk(22%, 0%, 86.6%, 67.8%)
CIE-LABlab(32.14, -17.80, 35.90)
CIE-LCHlch(32.14, 40.07, 116.37°)
OKLaboklab(40.9% -0.0522 0.0786)
OKLCHoklch(40.9% 0.094 123.6)
XYZxyz(5.1921, 7.1487, 1.4228)
Luminance0.0715 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40520B #1D0B52
analogous
#52400B #40520B #1C520B
triadic
#40520B #0B4052 #520B40
tetradic
#40520B #0B5240 #1D0B52 #520B1C
square
#40520B #0B5240 #1D0B52 #520B1C
split-complementary
#40520B #0B1C52 #400B52
monochromatic
#151B04 #161C04 #40520B #6A8812 #94BE19

Accessibility & contrast

On white

8.64
#40520B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#40520B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40520B
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40520B#FFFFFF#000000##FFFFFF
##40520B1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C00
Deuteranopia (green-blind)
#554B12
Tritanopia (blue-blind)
#444D45
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40520b;
/* rgb */ color: rgb(64, 82, 11);
/* oklch */ color: oklch(40.9% 0.094 123.6);
Tailwind
colors: {
  custom: {
    50: '#788251',
    500: '#40520b',
    950: '#000000',
  },
}
SCSS
$custom: #40520b;
$custom-light: #788251;
$custom-dark: #000000;
JSON
{
  "hex": "#40520b",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 11
  },
  "hsl": {
    "h": 75.211,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.40899,
    "c": 0.09438,
    "h": 123.6
  },
  "luminance": 0.07149
}

Semantic roles & 50–950 ramp

primary
#40520B
secondary
#442B8E
accent
#35F365
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090A02
muted
#7B7C78

Preview Lab

Preview with #40520B

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

Preview Lab → · Contrast checker → · Palette generator →

#40520B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva