#5B7312#5B7312

#5B7312 is a mid, vivid yellow-green. Relative luminance 0.145; OKLCH L 51.8% C 0.120 H 123.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5B7312
RGBrgb(91, 115, 18)
HSLhsl(75, 73%, 26%)
HSVhsv(75, 84%, 45%)
CMYKcmyk(20.9%, 0%, 84.3%, 54.9%)
CIE-LABlab(44.98, -22.53, 45.97)
CIE-LCHlch(44.98, 51.19, 116.11°)
OKLaboklab(51.81% -0.0662 0.1004)
OKLCHoklch(51.81% 0.12 123.4)
XYZxyz(10.5544, 14.5292, 2.8205)
Luminance0.1453 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7312 #2A1273
analogous
#735A12 #5B7312 #2A7312
triadic
#5B7312 #125B73 #73125B
tetradic
#5B7312 #12735A #2A1273 #73122A
square
#5B7312 #12735A #2A1273 #73122A
split-complementary
#5B7312 #122A73 #5A1273
monochromatic
#151A04 #313E0A #5B7312 #85A81A #AFDD23

Accessibility & contrast

On white

5.38
#5B7312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5B7312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7312
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7312#FFFFFF#000000##FFFFFF
##5B73121.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#776A1D
Tritanopia (blue-blind)
#606D62
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b7312;
/* rgb */ color: rgb(91, 115, 18);
/* oklch */ color: oklch(51.8% 0.120 123.4);
Tailwind
colors: {
  custom: {
    50: '#8d9b5a',
    500: '#5b7312',
    950: '#000000',
  },
}
SCSS
$custom: #5b7312;
$custom-light: #8d9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7312",
  "rgb": {
    "r": 91,
    "g": 115,
    "b": 18
  },
  "hsl": {
    "h": 74.845,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.51807,
    "c": 0.12023,
    "h": 123.4
  },
  "luminance": 0.14529
}

Semantic roles & 50–950 ramp

primary
#5B7312
secondary
#5337AA
accent
#38F066
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7312

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

Preview Lab → · Contrast checker → · Palette generator →

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