#40851B#40851B

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

Color values

HEX#40851B
RGBrgb(64, 133, 27)
HSLhsl(99, 66%, 31%)
HSVhsv(99, 80%, 52%)
CMYKcmyk(51.9%, 0%, 79.7%, 47.8%)
CIE-LABlab(49.43, -40.59, 46.67)
CIE-LCHlch(49.43, 61.86, 131.01°)
OKLaboklab(55.06% -0.1126 0.104)
OKLCHoklch(55.06% 0.153 137.3)
XYZxyz(10.6994, 17.9434, 3.9363)
Luminance0.1794 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40851B #601B85
analogous
#75851B #40851B #1B852B
triadic
#40851B #1B4085 #851B40
tetradic
#40851B #1B7585 #601B85 #852B1B
square
#40851B #1B7585 #601B85 #852B1B
split-complementary
#40851B #2B1B85 #851B75
monochromatic
#0F1F06 #285211 #40851B #58B825 #76D942

Accessibility & contrast

On white

4.58
#40851B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##40851B#FFFFFF#000000##000000
##40851B1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#817327
Tritanopia (blue-blind)
#3B8071
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #40851b;
/* rgb */ color: rgb(64, 133, 27);
/* oklch */ color: oklch(55.1% 0.153 137.3);
Tailwind
colors: {
  custom: {
    50: '#7ca960',
    500: '#40851b',
    950: '#000000',
  },
}
SCSS
$custom: #40851b;
$custom-light: #7ca960;
$custom-dark: #000000;
JSON
{
  "hex": "#40851b",
  "rgb": {
    "r": 64,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 99.057,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.55056,
    "c": 0.15327,
    "h": 137.3
  },
  "luminance": 0.17944
}

Semantic roles & 50–950 ramp

primary
#40851B
secondary
#9044B8
accent
#3FE9AE
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A1005
muted
#7C7F79

Preview Lab

Preview with #40851B

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

Preview Lab → · Contrast checker → · Palette generator →

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