#40520F#40520F

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

Color values

HEX#40520F
RGBrgb(64, 82, 15)
HSLhsl(76, 69%, 19%)
HSVhsv(76, 82%, 32%)
CMYKcmyk(22%, 0%, 81.7%, 67.8%)
CIE-LABlab(32.17, -17.58, 34.48)
CIE-LCHlch(32.17, 38.71, 117.02°)
OKLaboklab(40.92% -0.0513 0.0764)
OKLCHoklch(40.92% 0.092 123.9)
XYZxyz(5.2179, 7.1590, 1.5588)
Luminance0.0716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40520F #210F52
analogous
#52430F #40520F #1F520F
triadic
#40520F #0F4052 #520F40
tetradic
#40520F #0F5243 #210F52 #520F1F
square
#40520F #0F5243 #210F52 #520F1F
split-complementary
#40520F #0F1F52 #430F52
monochromatic
#141A05 #181E06 #40520F #688618 #91B922

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40520F#FFFFFF#000000##FFFFFF
##40520F1.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)
#574C03
Deuteranopia (green-blind)
#554C15
Tritanopia (blue-blind)
#444E45
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #40520f;
/* rgb */ color: rgb(64, 82, 15);
/* oklch */ color: oklch(40.9% 0.092 123.9);
Tailwind
colors: {
  custom: {
    50: '#778253',
    500: '#40520f',
    950: '#000000',
  },
}
SCSS
$custom: #40520f;
$custom-light: #778253;
$custom-dark: #000000;
JSON
{
  "hex": "#40520f",
  "rgb": {
    "r": 64,
    "g": 82,
    "b": 15
  },
  "hsl": {
    "h": 76.119,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.40925,
    "c": 0.09201,
    "h": 123.9
  },
  "luminance": 0.07159
}

Semantic roles & 50–950 ramp

primary
#40520F
secondary
#49318C
accent
#3CEC6B
background
#F7F7F4
surface
#EDEEE8
border
#C8C9C4
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #40520F

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

Preview Lab → · Contrast checker → · Palette generator →

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