#5A7112#5A7112

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

Color values

HEX#5A7112
RGBrgb(90, 113, 18)
HSLhsl(75, 73%, 26%)
HSVhsv(75, 84%, 44%)
CMYKcmyk(20.4%, 0%, 84.1%, 55.7%)
CIE-LABlab(44.27, -21.95, 45.30)
CIE-LCHlch(44.27, 50.34, 115.85°)
OKLaboklab(51.21% -0.0646 0.099)
OKLCHoklch(51.21% 0.118 123.1)
XYZxyz(10.2309, 14.0275, 2.7407)
Luminance0.1403 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7112 #291271
analogous
#715812 #5A7112 #2B7112
triadic
#5A7112 #125A71 #71125A
tetradic
#5A7112 #127158 #291271 #71122B
square
#5A7112 #127158 #291271 #71122B
split-complementary
#5A7112 #122B71 #581271
monochromatic
#151A04 #303C0A #5A7112 #84A61A #AEDB23

Accessibility & contrast

On white

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

On black

3.81
#5A7112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A7112#FFFFFF#000000##FFFFFF
##5A71121.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.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: #5a7112;
/* rgb */ color: rgb(90, 113, 18);
/* oklch */ color: oklch(51.2% 0.118 123.1);
Tailwind
colors: {
  custom: {
    50: '#8c995a',
    500: '#5a7112',
    950: '#000000',
  },
}
SCSS
$custom: #5a7112;
$custom-light: #8c995a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7112",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 74.526,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.51214,
    "c": 0.11818,
    "h": 123.1
  },
  "luminance": 0.14028
}

Semantic roles & 50–950 ramp

primary
#5A7112
secondary
#5237A8
accent
#39EF65
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7112

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

Preview Lab → · Contrast checker → · Palette generator →

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