#5B7313#5B7313

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

Color values

HEX#5B7313
RGBrgb(91, 115, 19)
HSLhsl(75, 72%, 26%)
HSVhsv(75, 83%, 45%)
CMYKcmyk(20.9%, 0%, 83.5%, 54.9%)
CIE-LABlab(44.99, -22.49, 45.67)
CIE-LCHlch(44.99, 50.90, 116.22°)
OKLaboklab(51.81% -0.066 0.0999)
OKLCHoklch(51.81% 0.12 123.5)
XYZxyz(10.5628, 14.5326, 2.8646)
Luminance0.1453 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7313 #2B1373
analogous
#735B13 #5B7313 #2B7313
triadic
#5B7313 #135B73 #73135B
tetradic
#5B7313 #13735B #2B1373 #73132B
square
#5B7313 #13735B #2B1373 #73132B
split-complementary
#5B7313 #132B73 #5B1373
monochromatic
#151A04 #313E0A #5B7313 #85A81C #AEDB25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B7313#FFFFFF#000000##FFFFFF
##5B73131.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: #5b7313;
/* rgb */ color: rgb(91, 115, 19);
/* oklch */ color: oklch(51.8% 0.120 123.5);
Tailwind
colors: {
  custom: {
    50: '#8d9b5b',
    500: '#5b7313',
    950: '#000000',
  },
}
SCSS
$custom: #5b7313;
$custom-light: #8d9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7313",
  "rgb": {
    "r": 91,
    "g": 115,
    "b": 19
  },
  "hsl": {
    "h": 75,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.51812,
    "c": 0.11975,
    "h": 123.5
  },
  "luminance": 0.14533
}

Semantic roles & 50–950 ramp

primary
#5B7313
secondary
#5538AA
accent
#39EE67
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7313

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

Preview Lab → · Contrast checker → · Palette generator →

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