#5A7612#5A7612

#5A7612 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.5% C 0.125 H 125.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5A7612
RGBrgb(90, 118, 18)
HSLhsl(77, 74%, 27%)
HSVhsv(77, 85%, 46%)
CMYKcmyk(23.7%, 0%, 84.7%, 53.7%)
CIE-LABlab(45.87, -24.48, 46.73)
CIE-LCHlch(45.87, 52.75, 117.65°)
OKLaboklab(52.51% -0.0715 0.102)
OKLCHoklch(52.51% 0.125 125)
XYZxyz(10.8042, 15.1741, 2.9318)
Luminance0.1517 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7612 #2E1276
analogous
#766012 #5A7612 #287612
triadic
#5A7612 #125A76 #76125A
tetradic
#5A7612 #127660 #2E1276 #761228
square
#5A7612 #127660 #2E1276 #761228
split-complementary
#5A7612 #122876 #601276
monochromatic
#141B04 #32410A #5A7612 #83AB1A #AADE25

Accessibility & contrast

On white

5.20
#5A7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5A7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7612
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7612#FFFFFF#000000##FFFFFF
##5A76121.005.204.035.20
#FFFFFF5.201.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#796C1D
Tritanopia (blue-blind)
#5F7064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a7612;
/* rgb */ color: rgb(90, 118, 18);
/* oklch */ color: oklch(52.5% 0.125 125.0);
Tailwind
colors: {
  custom: {
    50: '#8c9d5b',
    500: '#5a7612',
    950: '#000000',
  },
}
SCSS
$custom: #5a7612;
$custom-light: #8c9d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7612",
  "rgb": {
    "r": 90,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 76.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.52509,
    "c": 0.12456,
    "h": 125
  },
  "luminance": 0.15174
}

Semantic roles & 50–950 ramp

primary
#5A7612
secondary
#5837AD
accent
#38F06B
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7612

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

Preview Lab → · Contrast checker → · Palette generator →

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