#5A7011#5A7011

#5A7011 is a mid, moderate yellow-green. Relative luminance 0.138; OKLCH L 51.0% C 0.117 H 122.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5A7011
RGBrgb(90, 112, 17)
HSLhsl(74, 74%, 25%)
HSVhsv(74, 85%, 44%)
CMYKcmyk(19.6%, 0%, 84.8%, 56.1%)
CIE-LABlab(43.95, -21.48, 45.31)
CIE-LCHlch(43.95, 50.15, 115.36°)
OKLaboklab(50.95% -0.0634 0.0988)
OKLCHoklch(50.95% 0.117 122.7)
XYZxyz(10.1120, 13.8024, 2.6616)
Luminance0.1380 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7011 #271170
analogous
#705611 #5A7011 #2A7011
triadic
#5A7011 #115A70 #70115A
tetradic
#5A7011 #117056 #271170 #70112A
square
#5A7011 #117056 #271170 #70112A
split-complementary
#5A7011 #112A70 #561170
monochromatic
#151B04 #2F3B09 #5A7011 #85A519 #AFDA21

Accessibility & contrast

On white

5.58
#5A7011 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5A7011 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7011
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7011#FFFFFF#000000##FFFFFF
##5A70111.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776800
Deuteranopia (green-blind)
#74681B
Tritanopia (blue-blind)
#5F6A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a7011;
/* rgb */ color: rgb(90, 112, 17);
/* oklch */ color: oklch(51.0% 0.117 122.7);
Tailwind
colors: {
  custom: {
    50: '#8c9959',
    500: '#5a7011',
    950: '#000000',
  },
}
SCSS
$custom: #5a7011;
$custom-light: #8c9959;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7011",
  "rgb": {
    "r": 90,
    "g": 112,
    "b": 17
  },
  "hsl": {
    "h": 73.895,
    "s": 73.643,
    "l": 25.294
  },
  "oklch": {
    "l": 0.50951,
    "c": 0.11739,
    "h": 122.7
  },
  "luminance": 0.13802
}

Semantic roles & 50–950 ramp

primary
#5A7011
secondary
#5035A7
accent
#37F062
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A7011

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

Preview Lab → · Contrast checker → · Palette generator →

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