#5A7217#5A7217

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

Color values

HEX#5A7217
RGBrgb(90, 114, 23)
HSLhsl(76, 66%, 27%)
HSVhsv(76, 80%, 45%)
CMYKcmyk(21.1%, 0%, 79.8%, 55.3%)
CIE-LABlab(44.62, -22.22, 43.99)
CIE-LCHlch(44.62, 49.28, 116.80°)
OKLaboklab(51.5% -0.0649 0.0971)
OKLCHoklch(51.5% 0.117 123.8)
XYZxyz(10.3885, 14.2701, 3.0175)
Luminance0.1427 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7217 #2F1772
analogous
#725D17 #5A7217 #2D7217
triadic
#5A7217 #175A72 #72175A
tetradic
#5A7217 #17725D #2F1772 #72172D
square
#5A7217 #17725D #2F1772 #72172D
split-complementary
#5A7217 #172D72 #5D1772
monochromatic
#141905 #323F0D #5A7217 #82A521 #A9D52E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7217#FFFFFF#000000##FFFFFF
##5A72171.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)
#796A02
Deuteranopia (green-blind)
#766920
Tritanopia (blue-blind)
#5F6C61
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a7217;
/* rgb */ color: rgb(90, 114, 23);
/* oklch */ color: oklch(51.5% 0.117 123.8);
Tailwind
colors: {
  custom: {
    50: '#8c9a5c',
    500: '#5a7217',
    950: '#000000',
  },
}
SCSS
$custom: #5a7217;
$custom-light: #8c9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7217",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 75.824,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.51502,
    "c": 0.11681,
    "h": 123.8
  },
  "luminance": 0.1427
}

Semantic roles & 50–950 ramp

primary
#5A7217
secondary
#593DA8
accent
#3EE96C
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7217

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

Preview Lab → · Contrast checker → · Palette generator →

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