#5B7212#5B7212

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

Color values

HEX#5B7212
RGBrgb(91, 114, 18)
HSLhsl(74, 73%, 26%)
HSVhsv(74, 84%, 45%)
CMYKcmyk(20.2%, 0%, 84.2%, 55.3%)
CIE-LABlab(44.66, -22.02, 45.68)
CIE-LCHlch(44.66, 50.71, 115.73°)
OKLaboklab(51.55% -0.0648 0.0998)
OKLCHoklch(51.55% 0.119 123)
XYZxyz(10.4410, 14.3024, 2.7827)
Luminance0.1430 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7212 #291272
analogous
#725912 #5B7212 #2B7212
triadic
#5B7212 #125B72 #72125B
tetradic
#5B7212 #127259 #291272 #72122B
square
#5B7212 #127259 #291272 #72122B
split-complementary
#5B7212 #122B72 #591272
monochromatic
#151A04 #313D0A #5B7212 #85A71A #AFDC23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B7212#FFFFFF#000000##FFFFFF
##5B72121.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)
#766A1C
Tritanopia (blue-blind)
#606C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b7212;
/* rgb */ color: rgb(91, 114, 18);
/* oklch */ color: oklch(51.5% 0.119 123.0);
Tailwind
colors: {
  custom: {
    50: '#8d9a5a',
    500: '#5b7212',
    950: '#000000',
  },
}
SCSS
$custom: #5b7212;
$custom-light: #8d9a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7212",
  "rgb": {
    "r": 91,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 74.375,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.51549,
    "c": 0.11897,
    "h": 123
  },
  "luminance": 0.14302
}

Semantic roles & 50–950 ramp

primary
#5B7212
secondary
#5237A9
accent
#38EF64
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7212

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

Preview Lab → · Contrast checker → · Palette generator →

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