#40510D#40510D

#40510D is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.6% C 0.092 H 123.2°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#40510D
RGBrgb(64, 81, 13)
HSLhsl(75, 72%, 18%)
HSVhsv(75, 84%, 32%)
CMYKcmyk(21%, 0%, 84%, 68.2%)
CIE-LABlab(31.82, -17.15, 34.90)
CIE-LCHlch(31.82, 38.89, 116.17°)
OKLaboklab(40.64% -0.0503 0.0769)
OKLCHoklch(40.64% 0.092 123.2)
XYZxyz(5.1295, 7.0039, 1.4623)
Luminance0.0700 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40510D #1E0D51
analogous
#51400D #40510D #1E510D
triadic
#40510D #0D4051 #510D40
tetradic
#40510D #0D5140 #1E0D51 #510D1E
square
#40510D #0D5140 #1E0D51 #510D1E
split-complementary
#40510D #0D1E51 #400D51
monochromatic
#151A04 #161C05 #40510D #6A8615 #93BA1E

Accessibility & contrast

On white

8.75
#40510D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#40510D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40510D
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40510D#FFFFFF#000000##FFFFFF
##40510D1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B00
Deuteranopia (green-blind)
#544B14
Tritanopia (blue-blind)
#444C44
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40510d;
/* rgb */ color: rgb(64, 81, 13);
/* oklch */ color: oklch(40.6% 0.092 123.2);
Tailwind
colors: {
  custom: {
    50: '#778152',
    500: '#40510d',
    950: '#000000',
  },
}
SCSS
$custom: #40510d;
$custom-light: #778152;
$custom-dark: #000000;
JSON
{
  "hex": "#40510d",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 13
  },
  "hsl": {
    "h": 75,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.40638,
    "c": 0.09188,
    "h": 123.2
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#40510D
secondary
#452E8C
accent
#39EF66
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090A02
muted
#7B7C78

Preview Lab

Preview with #40510D

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

Preview Lab → · Contrast checker → · Palette generator →

#40510D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva