#40531C#40531C

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

Color values

HEX#40531C
RGBrgb(64, 83, 28)
HSLhsl(81, 50%, 22%)
HSVhsv(81, 66%, 33%)
CMYKcmyk(22.9%, 0%, 66.3%, 67.5%)
CIE-LABlab(32.61, -17.12, 29.07)
CIE-LCHlch(32.61, 33.73, 120.50°)
OKLaboklab(41.32% -0.0487 0.0672)
OKLCHoklch(41.32% 0.083 125.9)
XYZxyz(5.4172, 7.3603, 2.2337)
Luminance0.0736 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40531C #2F1C53
analogous
#534B1C #40531C #25531C
triadic
#40531C #1C4053 #531C40
tetradic
#40531C #1C534B #2F1C53 #531C25
square
#40531C #1C534B #2F1C53 #531C25
split-complementary
#40531C #1C2553 #4B1C53
monochromatic
#121708 #1D250D #40531C #63812B #87AF3B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40531C#FFFFFF#000000##FFFFFF
##40531C1.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)
#584D16
Deuteranopia (green-blind)
#554C20
Tritanopia (blue-blind)
#434F47
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #40531c;
/* rgb */ color: rgb(64, 83, 28);
/* oklch */ color: oklch(41.3% 0.083 125.9);
Tailwind
colors: {
  custom: {
    50: '#77835b',
    500: '#40531c',
    950: '#000000',
  },
}
SCSS
$custom: #40531c;
$custom-light: #77835b;
$custom-dark: #000000;
JSON
{
  "hex": "#40531c",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 28
  },
  "hsl": {
    "h": 80.727,
    "s": 49.55,
    "l": 21.765
  },
  "oklch": {
    "l": 0.41322,
    "c": 0.08295,
    "h": 125.9
  },
  "luminance": 0.0736
}

Semantic roles & 50–950 ramp

primary
#40531C
secondary
#5B4289
accent
#4FD97F
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40531C

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

Preview Lab → · Contrast checker → · Palette generator →

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