#5D851B#5D851B

#5D851B is a mid, vivid yellow-green. Relative luminance 0.192; OKLCH L 56.7% C 0.138 H 128.8°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5D851B
RGBrgb(93, 133, 27)
HSLhsl(83, 66%, 31%)
HSVhsv(83, 80%, 52%)
CMYKcmyk(30.1%, 0%, 79.7%, 47.8%)
CIE-LABlab(50.90, -30.08, 48.59)
CIE-LCHlch(50.90, 57.15, 121.77°)
OKLaboklab(56.66% -0.0862 0.1074)
OKLCHoklch(56.66% 0.138 128.8)
XYZxyz(13.0995, 19.1810, 4.0488)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D851B #431B85
analogous
#85781B #5D851B #28851B
triadic
#5D851B #1B5D85 #851B5D
tetradic
#5D851B #1B8578 #431B85 #851B28
square
#5D851B #1B8578 #431B85 #851B28
split-complementary
#5D851B #1B2885 #781B85
monochromatic
#161F06 #395211 #5D851B #81B825 #A0D942

Accessibility & contrast

On white

4.34
#5D851B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#5D851B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D851B
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D851B#FFFFFF#000000##000000
##5D851B1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B00
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#607F71
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5d851b;
/* rgb */ color: rgb(93, 133, 27);
/* oklch */ color: oklch(56.7% 0.138 128.8);
Tailwind
colors: {
  custom: {
    50: '#8fa861',
    500: '#5d851b',
    950: '#000000',
  },
}
SCSS
$custom: #5d851b;
$custom-light: #8fa861;
$custom-dark: #000000;
JSON
{
  "hex": "#5d851b",
  "rgb": {
    "r": 93,
    "g": 133,
    "b": 27
  },
  "hsl": {
    "h": 82.642,
    "s": 66.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56656,
    "c": 0.13771,
    "h": 128.8
  },
  "luminance": 0.19181
}

Semantic roles & 50–950 ramp

primary
#5D851B
secondary
#7044B8
accent
#3FE97F
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5D851B

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

Preview Lab → · Contrast checker → · Palette generator →

#5D851B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva