#40531A#40531A

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

Color values

HEX#40531A
RGBrgb(64, 83, 26)
HSLhsl(80, 52%, 21%)
HSVhsv(80, 69%, 33%)
CMYKcmyk(22.9%, 0%, 68.7%, 67.5%)
CIE-LABlab(32.59, -17.31, 30.05)
CIE-LCHlch(32.59, 34.67, 119.94°)
OKLaboklab(41.3% -0.0494 0.069)
OKLCHoklch(41.3% 0.085 125.6)
XYZxyz(5.3941, 7.3510, 2.1118)
Luminance0.0735 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40531A #2D1A53
analogous
#534A1A #40531A #24531A
triadic
#40531A #1A4053 #531A40
tetradic
#40531A #1A534A #2D1A53 #531A24
square
#40531A #1A534A #2D1A53 #531A24
split-complementary
#40531A #1A2453 #4A1A53
monochromatic
#121707 #1C240B #40531A #648229 #88B037

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #40531a;
/* rgb */ color: rgb(64, 83, 26);
/* oklch */ color: oklch(41.3% 0.085 125.6);
Tailwind
colors: {
  custom: {
    50: '#778359',
    500: '#40531a',
    950: '#000000',
  },
}
SCSS
$custom: #40531a;
$custom-light: #778359;
$custom-dark: #000000;
JSON
{
  "hex": "#40531a",
  "rgb": {
    "r": 64,
    "g": 83,
    "b": 26
  },
  "hsl": {
    "h": 80,
    "s": 52.294,
    "l": 21.373
  },
  "oklch": {
    "l": 0.41299,
    "c": 0.08483,
    "h": 125.6
  },
  "luminance": 0.07351
}

Semantic roles & 50–950 ramp

primary
#40531A
secondary
#584089
accent
#4CDC7C
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40531A

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

Preview Lab → · Contrast checker → · Palette generator →

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