#5B7315#5B7315

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

Color values

HEX#5B7315
RGBrgb(91, 115, 21)
HSLhsl(75, 69%, 27%)
HSVhsv(75, 82%, 45%)
CMYKcmyk(20.9%, 0%, 81.7%, 54.9%)
CIE-LABlab(45.00, -22.39, 45.04)
CIE-LCHlch(45.00, 50.30, 116.44°)
OKLaboklab(51.82% -0.0656 0.0989)
OKLCHoklch(51.82% 0.119 123.6)
XYZxyz(10.5806, 14.5397, 2.9583)
Luminance0.1454 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7315 #2D1573
analogous
#735C15 #5B7315 #2C7315
triadic
#5B7315 #155B73 #73155B
tetradic
#5B7315 #15735C #2D1573 #73152C
square
#5B7315 #15735C #2D1573 #73152C
split-complementary
#5B7315 #152C73 #5C1573
monochromatic
#141A05 #323F0C #5B7315 #84A71E #ACD82A

Accessibility & contrast

On white

5.37
#5B7315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B7315
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7315#FFFFFF#000000##FFFFFF
##5B73151.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b7315;
/* rgb */ color: rgb(91, 115, 21);
/* oklch */ color: oklch(51.8% 0.119 123.6);
Tailwind
colors: {
  custom: {
    50: '#8d9b5c',
    500: '#5b7315',
    950: '#000000',
  },
}
SCSS
$custom: #5b7315;
$custom-light: #8d9b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7315",
  "rgb": {
    "r": 91,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 75.319,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.51824,
    "c": 0.11871,
    "h": 123.6
  },
  "luminance": 0.1454
}

Semantic roles & 50–950 ramp

primary
#5B7315
secondary
#573BA9
accent
#3CEC69
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7315

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

Preview Lab → · Contrast checker → · Palette generator →

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