#40510F#40510F

#40510F is a dark, moderate yellow-green. Relative luminance 0.070; OKLCH L 40.7% C 0.091 H 123.3°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#40510F
RGBrgb(64, 81, 15)
HSLhsl(75, 69%, 19%)
HSVhsv(75, 81%, 32%)
CMYKcmyk(21%, 0%, 81.5%, 68.2%)
CIE-LABlab(31.83, -17.04, 34.16)
CIE-LCHlch(31.83, 38.17, 116.51°)
OKLaboklab(40.65% -0.0498 0.0757)
OKLCHoklch(40.65% 0.091 123.3)
XYZxyz(5.1431, 7.0093, 1.5338)
Luminance0.0701 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40510F #200F51
analogous
#51410F #40510F #1F510F
triadic
#40510F #0F4051 #510F40
tetradic
#40510F #0F5141 #200F51 #510F1F
square
#40510F #0F5141 #200F51 #510F1F
split-complementary
#40510F #0F1F51 #410F51
monochromatic
#141A05 #171D05 #40510F #698519 #92B822

Accessibility & contrast

On white

8.74
#40510F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40510F
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40510F#FFFFFF#000000##FFFFFF
##40510F1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B03
Deuteranopia (green-blind)
#544B15
Tritanopia (blue-blind)
#444D44
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40510f;
/* rgb */ color: rgb(64, 81, 15);
/* oklch */ color: oklch(40.7% 0.091 123.3);
Tailwind
colors: {
  custom: {
    50: '#778153',
    500: '#40510f',
    950: '#000000',
  },
}
SCSS
$custom: #40510f;
$custom-light: #778153;
$custom-dark: #000000;
JSON
{
  "hex": "#40510f",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 75.455,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.40651,
    "c": 0.09062,
    "h": 123.3
  },
  "luminance": 0.07009
}

Semantic roles & 50–950 ramp

primary
#40510F
secondary
#48318B
accent
#3CEC69
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090A03
muted
#7B7C78

Preview Lab

Preview with #40510F

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

Preview Lab → · Contrast checker → · Palette generator →

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