#5A7111#5A7111

#5A7111 is a mid, moderate yellow-green. Relative luminance 0.140; OKLCH L 51.2% C 0.119 H 123.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5A7111
RGBrgb(90, 113, 17)
HSLhsl(74, 74%, 25%)
HSVhsv(74, 85%, 44%)
CMYKcmyk(20.4%, 0%, 85%, 55.7%)
CIE-LABlab(44.27, -21.99, 45.60)
CIE-LCHlch(44.27, 50.62, 115.75°)
OKLaboklab(51.21% -0.0648 0.0994)
OKLCHoklch(51.21% 0.119 123.1)
XYZxyz(10.2229, 14.0243, 2.6986)
Luminance0.1402 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7111 #281171
analogous
#715811 #5A7111 #2A7111
triadic
#5A7111 #115A71 #71115A
tetradic
#5A7111 #117158 #281171 #71112A
square
#5A7111 #117158 #281171 #71112A
split-complementary
#5A7111 #112A71 #581171
monochromatic
#151B04 #303C09 #5A7111 #84A619 #AFDB21

Accessibility & contrast

On white

5.52
#5A7111 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5A7111 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7111
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7111#FFFFFF#000000##FFFFFF
##5A71111.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786900
Deuteranopia (green-blind)
#75691C
Tritanopia (blue-blind)
#5F6B60
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a7111;
/* rgb */ color: rgb(90, 113, 17);
/* oklch */ color: oklch(51.2% 0.119 123.1);
Tailwind
colors: {
  custom: {
    50: '#8c995a',
    500: '#5a7111',
    950: '#000000',
  },
}
SCSS
$custom: #5a7111;
$custom-light: #8c995a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7111",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 17
  },
  "hsl": {
    "h": 74.375,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.51209,
    "c": 0.11867,
    "h": 123.1
  },
  "luminance": 0.14024
}

Semantic roles & 50–950 ramp

primary
#5A7111
secondary
#5136A8
accent
#37F164
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7111

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

Preview Lab → · Contrast checker → · Palette generator →

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