#5A7E12#5A7E12

#5A7E12 is a mid, vivid yellow-green. Relative luminance 0.171; OKLCH L 54.6% C 0.135 H 127.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5A7E12
RGBrgb(90, 126, 18)
HSLhsl(80, 75%, 28%)
HSVhsv(80, 86%, 49%)
CMYKcmyk(28.6%, 0%, 85.7%, 50.6%)
CIE-LABlab(48.43, -28.40, 48.99)
CIE-LCHlch(48.43, 56.63, 120.10°)
OKLaboklab(54.59% -0.0821 0.1068)
OKLCHoklch(54.59% 0.135 127.5)
XYZxyz(11.7865, 17.1388, 3.2593)
Luminance0.1714 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E12 #36127E
analogous
#7E6C12 #5A7E12 #247E12
triadic
#5A7E12 #125A7E #7E125A
tetradic
#5A7E12 #127E6C #36127E #7E1224
square
#5A7E12 #127E6C #36127E #7E1224
split-complementary
#5A7E12 #12247E #6C127E
monochromatic
#131B04 #34480A #5A7E12 #80B41A #A4E12A

Accessibility & contrast

On white

4.74
#5A7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5A7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7E12
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7E12#FFFFFF#000000##FFFFFF
##5A7E121.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#80721F
Tritanopia (blue-blind)
#5E786B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7e12;
/* rgb */ color: rgb(90, 126, 18);
/* oklch */ color: oklch(54.6% 0.135 127.5);
Tailwind
colors: {
  custom: {
    50: '#8da35c',
    500: '#5a7e12',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e12;
$custom-light: #8da35c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e12",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 80,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.5459,
    "c": 0.13472,
    "h": 127.5
  },
  "luminance": 0.17139
}

Semantic roles & 50–950 ramp

primary
#5A7E12
secondary
#6138B4
accent
#36F275
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F04
muted
#7D7F79

Preview Lab

Preview with #5A7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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