#5A6E12#5A6E12

#5A6E12 is a mid, moderate yellow-green. Relative luminance 0.134; OKLCH L 50.4% C 0.114 H 121.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5A6E12
RGBrgb(90, 110, 18)
HSLhsl(73, 72%, 25%)
HSVhsv(73, 84%, 43%)
CMYKcmyk(18.2%, 0%, 83.6%, 56.9%)
CIE-LABlab(43.31, -20.40, 44.45)
CIE-LCHlch(43.31, 48.90, 114.65°)
OKLaboklab(50.44% -0.0603 0.0972)
OKLCHoklch(50.44% 0.114 121.8)
XYZxyz(9.9017, 13.3692, 2.6310)
Luminance0.1337 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6E12 #26126E
analogous
#6E5412 #5A6E12 #2C6E12
triadic
#5A6E12 #125A6E #6E125A
tetradic
#5A6E12 #126E54 #26126E #6E122C
square
#5A6E12 #126E54 #26126E #6E122C
split-complementary
#5A6E12 #122C6E #54126E
monochromatic
#161A04 #2F3909 #5A6E12 #85A31B #B0D723

Accessibility & contrast

On white

5.72
#5A6E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5A6E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6E12
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6E12#FFFFFF#000000##FFFFFF
##5A6E121.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756700
Deuteranopia (green-blind)
#73661C
Tritanopia (blue-blind)
#5F685D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a6e12;
/* rgb */ color: rgb(90, 110, 18);
/* oklch */ color: oklch(50.4% 0.114 121.8);
Tailwind
colors: {
  custom: {
    50: '#8c9759',
    500: '#5a6e12',
    950: '#000000',
  },
}
SCSS
$custom: #5a6e12;
$custom-light: #8c9759;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6e12",
  "rgb": {
    "r": 90,
    "g": 110,
    "b": 18
  },
  "hsl": {
    "h": 73.043,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.5044,
    "c": 0.11437,
    "h": 121.8
  },
  "luminance": 0.13369
}

Semantic roles & 50–950 ramp

primary
#5A6E12
secondary
#4F37A5
accent
#39EF61
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6E12

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

Preview Lab → · Contrast checker → · Palette generator →

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