#5A6912#5A6912

#5A6912 is a mid, moderate yellow-green. Relative luminance 0.123; OKLCH L 49.2% C 0.108 H 119.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#5A6912
RGBrgb(90, 105, 18)
HSLhsl(70, 71%, 24%)
HSVhsv(70, 83%, 41%)
CMYKcmyk(14.3%, 0%, 82.9%, 58.8%)
CIE-LABlab(41.72, -17.76, 43.01)
CIE-LCHlch(41.72, 46.53, 112.44°)
OKLaboklab(49.15% -0.0531 0.0941)
OKLCHoklch(49.15% 0.108 119.4)
XYZxyz(9.3774, 12.3205, 2.4562)
Luminance0.1232 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6912 #211269
analogous
#694D12 #5A6912 #2F6912
triadic
#5A6912 #125A69 #69125A
tetradic
#5A6912 #12694D #211269 #69122F
square
#5A6912 #12694D #211269 #69122F
split-complementary
#5A6912 #122F69 #4D1269
monochromatic
#161A04 #2D3509 #5A6912 #879D1B #B4D124

Accessibility & contrast

On white

6.06
#5A6912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5A6912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6912
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6912#FFFFFF#000000##FFFFFF
##5A69121.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706200
Deuteranopia (green-blind)
#6F631B
Tritanopia (blue-blind)
#606359
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6912;
/* rgb */ color: rgb(90, 105, 18);
/* oklch */ color: oklch(49.2% 0.108 119.4);
Tailwind
colors: {
  custom: {
    50: '#8c9359',
    500: '#5a6912',
    950: '#000000',
  },
}
SCSS
$custom: #5a6912;
$custom-light: #8c9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6912",
  "rgb": {
    "r": 90,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 70.345,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.49154,
    "c": 0.10806,
    "h": 119.4
  },
  "luminance": 0.1232
}

Semantic roles & 50–950 ramp

primary
#5A6912
secondary
#4936A1
accent
#3AED59
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6912

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

Preview Lab → · Contrast checker → · Palette generator →

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