#5A7512#5A7512

#5A7512 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 52.3% C 0.123 H 124.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5A7512
RGBrgb(90, 117, 18)
HSLhsl(76, 73%, 26%)
HSVhsv(76, 85%, 46%)
CMYKcmyk(23.1%, 0%, 84.6%, 54.1%)
CIE-LABlab(45.55, -23.98, 46.45)
CIE-LCHlch(45.55, 52.27, 117.31°)
OKLaboklab(52.25% -0.0701 0.1014)
OKLCHoklch(52.25% 0.123 124.7)
XYZxyz(10.6870, 14.9398, 2.8928)
Luminance0.1494 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7512 #2D1275
analogous
#755F12 #5A7512 #297512
triadic
#5A7512 #125A75 #75125A
tetradic
#5A7512 #12755F #2D1275 #751229
square
#5A7512 #12755F #2D1275 #751229
split-complementary
#5A7512 #122975 #5F1275
monochromatic
#141B04 #31400A #5A7512 #83AA1A #ABDD24

Accessibility & contrast

On white

5.27
#5A7512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5A7512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7512
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7512#FFFFFF#000000##FFFFFF
##5A75121.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#786C1D
Tritanopia (blue-blind)
#5F6F63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5a7512;
/* rgb */ color: rgb(90, 117, 18);
/* oklch */ color: oklch(52.3% 0.123 124.7);
Tailwind
colors: {
  custom: {
    50: '#8c9c5b',
    500: '#5a7512',
    950: '#000000',
  },
}
SCSS
$custom: #5a7512;
$custom-light: #8c9c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7512",
  "rgb": {
    "r": 90,
    "g": 117,
    "b": 18
  },
  "hsl": {
    "h": 76.364,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.5225,
    "c": 0.12329,
    "h": 124.7
  },
  "luminance": 0.1494
}

Semantic roles & 50–950 ramp

primary
#5A7512
secondary
#5737AC
accent
#38F06A
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7512

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

Preview Lab → · Contrast checker → · Palette generator →

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