#5B7215#5B7215

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

Color values

HEX#5B7215
RGBrgb(91, 114, 21)
HSLhsl(75, 69%, 26%)
HSVhsv(75, 82%, 45%)
CMYKcmyk(20.2%, 0%, 81.6%, 55.3%)
CIE-LABlab(44.68, -21.88, 44.75)
CIE-LCHlch(44.68, 49.81, 116.06°)
OKLaboklab(51.57% -0.0642 0.0983)
OKLCHoklch(51.57% 0.117 123.2)
XYZxyz(10.4672, 14.3129, 2.9205)
Luminance0.1431 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7215 #2C1572
analogous
#725B15 #5B7215 #2D7215
triadic
#5B7215 #155B72 #72155B
tetradic
#5B7215 #15725B #2C1572 #72152D
square
#5B7215 #15725B #2C1572 #72152D
split-complementary
#5B7215 #152D72 #5B1572
monochromatic
#151A05 #323E0B #5B7215 #84A61F #ADD82A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5b7215;
/* rgb */ color: rgb(91, 114, 21);
/* oklch */ color: oklch(51.6% 0.117 123.2);
Tailwind
colors: {
  custom: {
    50: '#8d9a5b',
    500: '#5b7215',
    950: '#000000',
  },
}
SCSS
$custom: #5b7215;
$custom-light: #8d9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7215",
  "rgb": {
    "r": 91,
    "g": 114,
    "b": 21
  },
  "hsl": {
    "h": 74.839,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51566,
    "c": 0.11743,
    "h": 123.2
  },
  "luminance": 0.14313
}

Semantic roles & 50–950 ramp

primary
#5B7215
secondary
#563BA8
accent
#3CEC68
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7215

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

Preview Lab → · Contrast checker → · Palette generator →

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