#5A6812#5A6812

#5A6812 is a mid, moderate yellow. Relative luminance 0.121; OKLCH L 48.9% C 0.107 H 118.9°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5A6812
RGBrgb(90, 104, 18)
HSLhsl(70, 70%, 24%)
HSVhsv(70, 83%, 41%)
CMYKcmyk(13.5%, 0%, 82.7%, 59.2%)
CIE-LABlab(41.40, -17.22, 42.72)
CIE-LCHlch(41.40, 46.06, 111.96°)
OKLaboklab(48.9% -0.0516 0.0935)
OKLCHoklch(48.9% 0.107 118.9)
XYZxyz(9.2762, 12.1180, 2.4225)
Luminance0.1212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6812 #201268
analogous
#684B12 #5A6812 #2F6812
triadic
#5A6812 #125A68 #68125A
tetradic
#5A6812 #12684B #201268 #68122F
square
#5A6812 #12684B #201268 #68122F
split-complementary
#5A6812 #122F68 #4B1268
monochromatic
#171A05 #2D3409 #5A6812 #879C1B #B4D024

Accessibility & contrast

On white

6.13
#5A6812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5A6812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6812
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6812#FFFFFF#000000##FFFFFF
##5A68121.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6200
Deuteranopia (green-blind)
#6E621A
Tritanopia (blue-blind)
#606258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6812;
/* rgb */ color: rgb(90, 104, 18);
/* oklch */ color: oklch(48.9% 0.107 118.9);
Tailwind
colors: {
  custom: {
    50: '#8c9359',
    500: '#5a6812',
    950: '#000000',
  },
}
SCSS
$custom: #5a6812;
$custom-light: #8c9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6812",
  "rgb": {
    "r": 90,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 69.767,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.48898,
    "c": 0.10681,
    "h": 118.9
  },
  "luminance": 0.12118
}

Semantic roles & 50–950 ramp

primary
#5A6812
secondary
#4736A0
accent
#3BED58
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6812

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

Preview Lab → · Contrast checker → · Palette generator →

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