#5B7213#5B7213

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

Color values

HEX#5B7213
RGBrgb(91, 114, 19)
HSLhsl(75, 71%, 26%)
HSVhsv(75, 83%, 45%)
CMYKcmyk(20.2%, 0%, 83.3%, 55.3%)
CIE-LABlab(44.67, -21.97, 45.38)
CIE-LCHlch(44.67, 50.42, 115.84°)
OKLaboklab(51.55% -0.0646 0.0993)
OKLCHoklch(51.55% 0.118 123.1)
XYZxyz(10.4494, 14.3057, 2.8267)
Luminance0.1431 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7213 #2A1372
analogous
#725913 #5B7213 #2B7213
triadic
#5B7213 #135B72 #72135B
tetradic
#5B7213 #137259 #2A1372 #72132B
square
#5B7213 #137259 #2A1372 #72132B
split-complementary
#5B7213 #132B72 #591372
monochromatic
#151A04 #313E0A #5B7213 #85A61C #AFDB25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #5b7213;
/* rgb */ color: rgb(91, 114, 19);
/* oklch */ color: oklch(51.6% 0.118 123.1);
Tailwind
colors: {
  custom: {
    50: '#8d9a5b',
    500: '#5b7213',
    950: '#000000',
  },
}
SCSS
$custom: #5b7213;
$custom-light: #8d9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7213",
  "rgb": {
    "r": 91,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 74.526,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.51554,
    "c": 0.11848,
    "h": 123.1
  },
  "luminance": 0.14306
}

Semantic roles & 50–950 ramp

primary
#5B7213
secondary
#5338A9
accent
#3AEE65
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7213

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

Preview Lab → · Contrast checker → · Palette generator →

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