#5B7310#5B7310

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

Color values

HEX#5B7310
RGBrgb(91, 115, 16)
HSLhsl(75, 76%, 26%)
HSVhsv(75, 86%, 45%)
CMYKcmyk(20.9%, 0%, 86.1%, 54.9%)
CIE-LABlab(44.97, -22.61, 46.53)
CIE-LCHlch(44.97, 51.73, 115.92°)
OKLaboklab(51.8% -0.0666 0.1012)
OKLCHoklch(51.8% 0.121 123.3)
XYZxyz(10.5388, 14.5230, 2.7381)
Luminance0.1452 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7310 #281073
analogous
#735910 #5B7310 #2A7310
triadic
#5B7310 #105B73 #73105B
tetradic
#5B7310 #107359 #281073 #73102A
square
#5B7310 #107359 #281073 #73102A
split-complementary
#5B7310 #102A73 #591073
monochromatic
#151B04 #303D09 #5B7310 #86A917 #B0DE1F

Accessibility & contrast

On white

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

On black

3.90
#5B7310 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5B7310#FFFFFF#000000##FFFFFF
##5B73101.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b7310;
/* rgb */ color: rgb(91, 115, 16);
/* oklch */ color: oklch(51.8% 0.121 123.3);
Tailwind
colors: {
  custom: {
    50: '#8d9b5a',
    500: '#5b7310',
    950: '#000000',
  },
}
SCSS
$custom: #5b7310;
$custom-light: #8d9b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7310",
  "rgb": {
    "r": 91,
    "g": 115,
    "b": 16
  },
  "hsl": {
    "h": 74.545,
    "s": 75.573,
    "l": 25.686
  },
  "oklch": {
    "l": 0.51797,
    "c": 0.12115,
    "h": 123.3
  },
  "luminance": 0.14523
}

Semantic roles & 50–950 ramp

primary
#5B7310
secondary
#5134AA
accent
#36F263
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E04
muted
#7D7E79

Preview Lab

Preview with #5B7310

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

Preview Lab → · Contrast checker → · Palette generator →

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