#40851D#40851D

#40851D is a mid, vivid yellow-green. Relative luminance 0.180; OKLCH L 55.1% C 0.152 H 137.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#40851D
RGBrgb(64, 133, 29)
HSLhsl(100, 64%, 32%)
HSVhsv(100, 78%, 52%)
CMYKcmyk(51.9%, 0%, 78.2%, 47.8%)
CIE-LABlab(49.44, -40.46, 46.00)
CIE-LCHlch(49.44, 61.26, 131.34°)
OKLaboklab(55.07% -0.1121 0.1029)
OKLCHoklch(55.07% 0.152 137.5)
XYZxyz(10.7233, 17.9530, 4.0624)
Luminance0.1795 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40851D #621D85
analogous
#74851D #40851D #1D852E
triadic
#40851D #1D4085 #851D40
tetradic
#40851D #1D7485 #621D85 #852E1D
square
#40851D #1D7485 #621D85 #852E1D
split-complementary
#40851D #2E1D85 #851D74
monochromatic
#102107 #285312 #40851D #58B728 #77D746

Accessibility & contrast

On white

4.57
#40851D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#40851D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #40851D
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40851D#FFFFFF#000000##000000
##40851D1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7905
Deuteranopia (green-blind)
#817328
Tritanopia (blue-blind)
#3B8071
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #40851d;
/* rgb */ color: rgb(64, 133, 29);
/* oklch */ color: oklch(55.1% 0.152 137.5);
Tailwind
colors: {
  custom: {
    50: '#7ca961',
    500: '#40851d',
    950: '#000000',
  },
}
SCSS
$custom: #40851d;
$custom-light: #7ca961;
$custom-dark: #000000;
JSON
{
  "hex": "#40851d",
  "rgb": {
    "r": 64,
    "g": 133,
    "b": 29
  },
  "hsl": {
    "h": 99.808,
    "s": 64.198,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55069,
    "c": 0.15217,
    "h": 137.5
  },
  "luminance": 0.17954
}

Semantic roles & 50–950 ramp

primary
#40851D
secondary
#9246B8
accent
#41E7AF
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #40851D

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

Preview Lab → · Contrast checker → · Palette generator →

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