#5A7211#5A7211

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

Color values

HEX#5A7211
RGBrgb(90, 114, 17)
HSLhsl(75, 74%, 26%)
HSVhsv(75, 85%, 45%)
CMYKcmyk(21.1%, 0%, 85.1%, 55.3%)
CIE-LABlab(44.59, -22.50, 45.88)
CIE-LCHlch(44.59, 51.10, 116.13°)
OKLaboklab(51.47% -0.0662 0.1)
OKLCHoklch(51.47% 0.12 123.5)
XYZxyz(10.3351, 14.2487, 2.7360)
Luminance0.1425 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7211 #291172
analogous
#725911 #5A7211 #2A7211
triadic
#5A7211 #115A72 #72115A
tetradic
#5A7211 #117259 #291172 #72112A
square
#5A7211 #117259 #291172 #72112A
split-complementary
#5A7211 #112A72 #591172
monochromatic
#151B04 #303D09 #5A7211 #84A719 #AEDD21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7211#FFFFFF#000000##FFFFFF
##5A72111.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)
#76691C
Tritanopia (blue-blind)
#5F6C61
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a7211;
/* rgb */ color: rgb(90, 114, 17);
/* oklch */ color: oklch(51.5% 0.120 123.5);
Tailwind
colors: {
  custom: {
    50: '#8c9a5a',
    500: '#5a7211',
    950: '#000000',
  },
}
SCSS
$custom: #5a7211;
$custom-light: #8c9a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7211",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 17
  },
  "hsl": {
    "h": 74.845,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.51468,
    "c": 0.11993,
    "h": 123.5
  },
  "luminance": 0.14249
}

Semantic roles & 50–950 ramp

primary
#5A7211
secondary
#5236A9
accent
#37F165
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7211

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

Preview Lab → · Contrast checker → · Palette generator →

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