#5A7213#5A7213

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

Color values

HEX#5A7213
RGBrgb(90, 114, 19)
HSLhsl(75, 71%, 26%)
HSVhsv(75, 83%, 45%)
CMYKcmyk(21.1%, 0%, 83.3%, 55.3%)
CIE-LABlab(44.60, -22.42, 45.29)
CIE-LCHlch(44.60, 50.53, 116.33°)
OKLaboklab(51.48% -0.0658 0.0991)
OKLCHoklch(51.48% 0.119 123.6)
XYZxyz(10.3514, 14.2552, 2.8222)
Luminance0.1426 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7213 #2B1372
analogous
#725A13 #5A7213 #2A7213
triadic
#5A7213 #135A72 #72135A
tetradic
#5A7213 #13725A #2B1372 #72132A
square
#5A7213 #13725A #2B1372 #72132A
split-complementary
#5A7213 #132A72 #5A1372
monochromatic
#151A04 #313E0A #5A7213 #83A61C #ADDB25

Accessibility & contrast

On white

5.45
#5A7213 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5A7213 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7213
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7213#FFFFFF#000000##FFFFFF
##5A72131.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#76691D
Tritanopia (blue-blind)
#5F6C61
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a7213;
/* rgb */ color: rgb(90, 114, 19);
/* oklch */ color: oklch(51.5% 0.119 123.6);
Tailwind
colors: {
  custom: {
    50: '#8c9a5b',
    500: '#5a7213',
    950: '#000000',
  },
}
SCSS
$custom: #5a7213;
$custom-light: #8c9a5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7213",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 19
  },
  "hsl": {
    "h": 75.158,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.51478,
    "c": 0.11897,
    "h": 123.6
  },
  "luminance": 0.14255
}

Semantic roles & 50–950 ramp

primary
#5A7213
secondary
#5538A9
accent
#3AEE67
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7213

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

Preview Lab → · Contrast checker → · Palette generator →

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