#40551B#40551B

#40551B is a dark, moderate yellow-green. Relative luminance 0.077; OKLCH L 41.9% C 0.087 H 126.8°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#40551B
RGBrgb(64, 85, 27)
HSLhsl(82, 52%, 22%)
HSVhsv(82, 68%, 33%)
CMYKcmyk(24.7%, 0%, 68.2%, 66.7%)
CIE-LABlab(33.28, -18.30, 30.30)
CIE-LCHlch(33.28, 35.39, 121.13°)
OKLaboklab(41.86% -0.052 0.0696)
OKLCHoklch(41.86% 0.087 126.8)
XYZxyz(5.5607, 7.6660, 2.2234)
Luminance0.0767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40551B #301B55
analogous
#554D1B #40551B #23551B
triadic
#40551B #1B4055 #551B40
tetradic
#40551B #1B554D #301B55 #551B23
square
#40551B #1B554D #301B55 #551B23
split-complementary
#40551B #1B2355 #4D1B55
monochromatic
#111707 #1D270C #40551B #63832A #86B239

Accessibility & contrast

On white

8.29
#40551B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#40551B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40551B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40551B#FFFFFF#000000##FFFFFF
##40551B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A4F14
Deuteranopia (green-blind)
#574E1F
Tritanopia (blue-blind)
#435149
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #40551b;
/* rgb */ color: rgb(64, 85, 27);
/* oklch */ color: oklch(41.9% 0.087 126.8);
Tailwind
colors: {
  custom: {
    50: '#77855a',
    500: '#40551b',
    950: '#000000',
  },
}
SCSS
$custom: #40551b;
$custom-light: #77855a;
$custom-dark: #000000;
JSON
{
  "hex": "#40551b",
  "rgb": {
    "r": 64,
    "g": 85,
    "b": 27
  },
  "hsl": {
    "h": 81.724,
    "s": 51.786,
    "l": 21.961
  },
  "oklch": {
    "l": 0.41855,
    "c": 0.08693,
    "h": 126.8
  },
  "luminance": 0.07666
}

Semantic roles & 50–950 ramp

primary
#40551B
secondary
#5C418B
accent
#4DDB80
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40551B

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

Preview Lab → · Contrast checker → · Palette generator →

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