#5A7210#5A7210

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

Color values

HEX#5A7210
RGBrgb(90, 114, 16)
HSLhsl(75, 75%, 25%)
HSVhsv(75, 86%, 45%)
CMYKcmyk(21.1%, 0%, 86%, 55.3%)
CIE-LABlab(44.58, -22.54, 46.16)
CIE-LCHlch(44.58, 51.37, 116.03°)
OKLaboklab(51.46% -0.0663 0.1005)
OKLCHoklch(51.46% 0.12 123.4)
XYZxyz(10.3274, 14.2456, 2.6957)
Luminance0.1425 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7210 #281072
analogous
#725910 #5A7210 #297210
triadic
#5A7210 #105A72 #72105A
tetradic
#5A7210 #107259 #281072 #721029
square
#5A7210 #107259 #281072 #721029
split-complementary
#5A7210 #102972 #591072
monochromatic
#151B04 #303C08 #5A7210 #84A818 #AFDD1F

Accessibility & contrast

On white

5.46
#5A7210 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A7210
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7210#FFFFFF#000000##FFFFFF
##5A72101.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a7210;
/* rgb */ color: rgb(90, 114, 16);
/* oklch */ color: oklch(51.5% 0.120 123.4);
Tailwind
colors: {
  custom: {
    50: '#8c9a59',
    500: '#5a7210',
    950: '#000000',
  },
}
SCSS
$custom: #5a7210;
$custom-light: #8c9a59;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7210",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 16
  },
  "hsl": {
    "h": 74.694,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.51463,
    "c": 0.12039,
    "h": 123.4
  },
  "luminance": 0.14246
}

Semantic roles & 50–950 ramp

primary
#5A7210
secondary
#5134A9
accent
#36F264
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7210

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

Preview Lab → · Contrast checker → · Palette generator →

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