#5A6D12#5A6D12

#5A6D12 is a mid, moderate yellow-green. Relative luminance 0.132; OKLCH L 50.2% C 0.113 H 121.4°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5A6D12
RGBrgb(90, 109, 18)
HSLhsl(73, 72%, 25%)
HSVhsv(73, 83%, 43%)
CMYKcmyk(17.4%, 0%, 83.5%, 57.3%)
CIE-LABlab(43.00, -19.88, 44.16)
CIE-LCHlch(43.00, 48.43, 114.23°)
OKLaboklab(50.18% -0.0589 0.0966)
OKLCHoklch(50.18% 0.113 121.4)
XYZxyz(9.7944, 13.1546, 2.5953)
Luminance0.1316 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6D12 #25126D
analogous
#6D5212 #5A6D12 #2D6D12
triadic
#5A6D12 #125A6D #6D125A
tetradic
#5A6D12 #126D52 #25126D #6D122D
square
#5A6D12 #126D52 #25126D #6D122D
split-complementary
#5A6D12 #122D6D #52126D
monochromatic
#161A04 #2F3809 #5A6D12 #85A21B #B1D623

Accessibility & contrast

On white

5.78
#5A6D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5A6D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6D12
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6D12#FFFFFF#000000##FFFFFF
##5A6D121.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746600
Deuteranopia (green-blind)
#72661B
Tritanopia (blue-blind)
#5F675C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a6d12;
/* rgb */ color: rgb(90, 109, 18);
/* oklch */ color: oklch(50.2% 0.113 121.4);
Tailwind
colors: {
  custom: {
    50: '#8c9659',
    500: '#5a6d12',
    950: '#000000',
  },
}
SCSS
$custom: #5a6d12;
$custom-light: #8c9659;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6d12",
  "rgb": {
    "r": 90,
    "g": 109,
    "b": 18
  },
  "hsl": {
    "h": 72.527,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.50182,
    "c": 0.11311,
    "h": 121.4
  },
  "luminance": 0.13155
}

Semantic roles & 50–950 ramp

primary
#5A6D12
secondary
#4D37A4
accent
#39EE5F
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6D12

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

Preview Lab → · Contrast checker → · Palette generator →

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