#40531B#40531B

#40531B is a dark, moderate yellow-green. Relative luminance 0.074; OKLCH L 41.3% C 0.084 H 125.8°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#40531B
RGBrgb(64, 83, 27)
HSLhsl(80, 51%, 22%)
HSVhsv(80, 67%, 33%)
CMYKcmyk(22.9%, 0%, 67.5%, 67.5%)
CIE-LABlab(32.60, -17.22, 29.56)
CIE-LCHlch(32.60, 34.21, 120.22°)
OKLaboklab(41.31% -0.0491 0.0681)
OKLCHoklch(41.31% 0.084 125.8)
XYZxyz(5.4055, 7.3556, 2.1717)
Luminance0.0736 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40531B #2E1B53
analogous
#534A1B #40531B #24531B
triadic
#40531B #1B4053 #531B40
tetradic
#40531B #1B534A #2E1B53 #531B24
square
#40531B #1B534A #2E1B53 #531B24
split-complementary
#40531B #1B2453 #4A1B53
monochromatic
#121708 #1C250C #40531B #64812A #87AF39

Accessibility & contrast

On white

8.50
#40531B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#40531B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40531B
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40531B#FFFFFF#000000##FFFFFF
##40531B1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D14
Deuteranopia (green-blind)
#554C1F
Tritanopia (blue-blind)
#434F47
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40531b;
/* rgb */ color: rgb(64, 83, 27);
/* oklch */ color: oklch(41.3% 0.084 125.8);
Tailwind
colors: {
  custom: {
    50: '#77835a',
    500: '#40531b',
    950: '#000000',
  },
}
SCSS
$custom: #40531b;
$custom-light: #77835a;
$custom-dark: #000000;
JSON
{
  "hex": "#40531b",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 27
  },
  "hsl": {
    "h": 80.357,
    "s": 50.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.4131,
    "c": 0.0839,
    "h": 125.8
  },
  "luminance": 0.07356
}

Semantic roles & 50–950 ramp

primary
#40531B
secondary
#594189
accent
#4DDA7D
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40531B

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

Preview Lab → · Contrast checker → · Palette generator →

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