#5A7012#5A7012

#5A7012 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#5A7012
RGBrgb(90, 112, 18)
HSLhsl(74, 72%, 25%)
HSVhsv(74, 84%, 44%)
CMYKcmyk(19.6%, 0%, 83.9%, 56.1%)
CIE-LABlab(43.95, -21.43, 45.02)
CIE-LCHlch(43.95, 49.86, 115.46°)
OKLaboklab(50.96% -0.0632 0.0984)
OKLCHoklch(50.96% 0.117 122.7)
XYZxyz(10.1200, 13.8056, 2.7038)
Luminance0.1381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7012 #281270
analogous
#705712 #5A7012 #2B7012
triadic
#5A7012 #125A70 #70125A
tetradic
#5A7012 #127057 #281270 #70122B
square
#5A7012 #127057 #281270 #70122B
split-complementary
#5A7012 #122B70 #571270
monochromatic
#151A04 #303B0A #5A7012 #84A51A #AFD923

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7012#FFFFFF#000000##FFFFFF
##5A70121.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)
#74681C
Tritanopia (blue-blind)
#5F6A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a7012;
/* rgb */ color: rgb(90, 112, 18);
/* oklch */ color: oklch(51.0% 0.117 122.7);
Tailwind
colors: {
  custom: {
    50: '#8c995a',
    500: '#5a7012',
    950: '#000000',
  },
}
SCSS
$custom: #5a7012;
$custom-light: #8c995a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7012",
  "rgb": {
    "r": 90,
    "g": 112,
    "b": 18
  },
  "hsl": {
    "h": 74.043,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.50956,
    "c": 0.11691,
    "h": 122.7
  },
  "luminance": 0.13806
}

Semantic roles & 50–950 ramp

primary
#5A7012
secondary
#5137A7
accent
#39EF63
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A7012

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

Preview Lab → · Contrast checker → · Palette generator →

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