#5B7210#5B7210

#5B7210 is a mid, moderate yellow-green. Relative luminance 0.143; OKLCH L 51.5% C 0.120 H 122.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5B7210
RGBrgb(91, 114, 16)
HSLhsl(74, 75%, 25%)
HSVhsv(74, 86%, 45%)
CMYKcmyk(20.2%, 0%, 86%, 55.3%)
CIE-LABlab(44.65, -22.10, 46.25)
CIE-LCHlch(44.65, 51.26, 115.54°)
OKLaboklab(51.54% -0.0652 0.1006)
OKLCHoklch(51.54% 0.12 122.9)
XYZxyz(10.4254, 14.2961, 2.7003)
Luminance0.1430 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7210 #271072
analogous
#725810 #5B7210 #2A7210
triadic
#5B7210 #105B72 #72105B
tetradic
#5B7210 #107258 #271072 #72102A
square
#5B7210 #107258 #271072 #72102A
split-complementary
#5B7210 #102A72 #581072
monochromatic
#151B04 #303C08 #5B7210 #86A818 #B1DD1F

Accessibility & contrast

On white

5.44
#5B7210 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5B7210 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7210
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7210#FFFFFF#000000##FFFFFF
##5B72101.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#766A1B
Tritanopia (blue-blind)
#606C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b7210;
/* rgb */ color: rgb(91, 114, 16);
/* oklch */ color: oklch(51.5% 0.120 122.9);
Tailwind
colors: {
  custom: {
    50: '#8d9a59',
    500: '#5b7210',
    950: '#000000',
  },
}
SCSS
$custom: #5b7210;
$custom-light: #8d9a59;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7210",
  "rgb": {
    "r": 91,
    "g": 114,
    "b": 16
  },
  "hsl": {
    "h": 74.082,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.51539,
    "c": 0.11988,
    "h": 122.9
  },
  "luminance": 0.14296
}

Semantic roles & 50–950 ramp

primary
#5B7210
secondary
#5034A9
accent
#36F262
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7210

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

Preview Lab → · Contrast checker → · Palette generator →

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