#40510C#40510C

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

Color values

HEX#40510C
RGBrgb(64, 81, 12)
HSLhsl(75, 74%, 18%)
HSVhsv(75, 85%, 32%)
CMYKcmyk(21%, 0%, 85.2%, 68.2%)
CIE-LABlab(31.81, -17.20, 35.25)
CIE-LCHlch(31.81, 39.23, 116.01°)
OKLaboklab(40.63% -0.0505 0.0775)
OKLCHoklch(40.63% 0.092 123.1)
XYZxyz(5.1232, 7.0014, 1.4292)
Luminance0.0700 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40510C #1D0C51
analogous
#513F0C #40510C #1D510C
triadic
#40510C #0C4051 #510C40
tetradic
#40510C #0C513F #1D0C51 #510C1D
square
#40510C #0C513F #1D0C51 #510C1D
split-complementary
#40510C #0C1D51 #3F0C51
monochromatic
#151B04 #161C04 #40510C #6A8614 #94BC1C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40510C#FFFFFF#000000##FFFFFF
##40510C1.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)
#544B13
Tritanopia (blue-blind)
#444C44
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #40510c;
/* rgb */ color: rgb(64, 81, 12);
/* oklch */ color: oklch(40.6% 0.092 123.1);
Tailwind
colors: {
  custom: {
    50: '#778152',
    500: '#40510c',
    950: '#000000',
  },
}
SCSS
$custom: #40510c;
$custom-light: #778152;
$custom-dark: #000000;
JSON
{
  "hex": "#40510c",
  "rgb": {
    "r": 64,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 74.783,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.40631,
    "c": 0.09246,
    "h": 123.1
  },
  "luminance": 0.07001
}

Semantic roles & 50–950 ramp

primary
#40510C
secondary
#442C8C
accent
#37F165
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090A02
muted
#7B7C78

Preview Lab

Preview with #40510C

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

Preview Lab → · Contrast checker → · Palette generator →

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