#5A7212#5A7212

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

Color values

HEX#5A7212
RGBrgb(90, 114, 18)
HSLhsl(75, 73%, 26%)
HSVhsv(75, 84%, 45%)
CMYKcmyk(21.1%, 0%, 84.2%, 55.3%)
CIE-LABlab(44.59, -22.46, 45.59)
CIE-LCHlch(44.59, 50.82, 116.23°)
OKLaboklab(51.47% -0.066 0.0996)
OKLCHoklch(51.47% 0.119 123.5)
XYZxyz(10.3431, 14.2519, 2.7781)
Luminance0.1425 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7212 #2A1272
analogous
#725A12 #5A7212 #2A7212
triadic
#5A7212 #125A72 #72125A
tetradic
#5A7212 #12725A #2A1272 #72122A
square
#5A7212 #12725A #2A1272 #72122A
split-complementary
#5A7212 #122A72 #5A1272
monochromatic
#151A04 #303D0A #5A7212 #84A71A #ADDC23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7212#FFFFFF#000000##FFFFFF
##5A72121.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: #5a7212;
/* rgb */ color: rgb(90, 114, 18);
/* oklch */ color: oklch(51.5% 0.119 123.5);
Tailwind
colors: {
  custom: {
    50: '#8c9a5a',
    500: '#5a7212',
    950: '#000000',
  },
}
SCSS
$custom: #5a7212;
$custom-light: #8c9a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7212",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 18
  },
  "hsl": {
    "h": 75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.51473,
    "c": 0.11946,
    "h": 123.5
  },
  "luminance": 0.14252
}

Semantic roles & 50–950 ramp

primary
#5A7212
secondary
#5337A9
accent
#38EF66
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7212

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

Preview Lab → · Contrast checker → · Palette generator →

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