#5A6212#5A6212

#5A6212 is a mid, moderate yellow. Relative luminance 0.110; OKLCH L 47.4% C 0.099 H 115.4°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5A6212
RGBrgb(90, 98, 18)
HSLhsl(66, 69%, 23%)
HSVhsv(66, 82%, 38%)
CMYKcmyk(8.2%, 0%, 81.6%, 61.6%)
CIE-LABlab(39.50, -13.95, 40.99)
CIE-LCHlch(39.50, 43.29, 108.79°)
OKLaboklab(47.37% -0.0426 0.0898)
OKLCHoklch(47.37% 0.099 115.4)
XYZxyz(8.6936, 10.9528, 2.2283)
Luminance0.1095 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6212 #1A1262
analogous
#624212 #5A6212 #326212
triadic
#5A6212 #125A62 #62125A
tetradic
#5A6212 #126242 #1A1262 #621232
square
#5A6212 #126242 #1A1262 #621232
split-complementary
#5A6212 #123262 #421262
monochromatic
#181A05 #2B2E09 #5A6212 #89961B #B9C925

Accessibility & contrast

On white

6.58
#5A6212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5A6212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6212
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6212#FFFFFF#000000##FFFFFF
##5A62121.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#695E19
Tritanopia (blue-blind)
#605C53
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a6212;
/* rgb */ color: rgb(90, 98, 18);
/* oklch */ color: oklch(47.4% 0.099 115.4);
Tailwind
colors: {
  custom: {
    50: '#8b8e58',
    500: '#5a6212',
    950: '#000000',
  },
}
SCSS
$custom: #5a6212;
$custom-light: #8b8e58;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6212",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 66,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.47368,
    "c": 0.09941,
    "h": 115.4
  },
  "luminance": 0.10953
}

Semantic roles & 50–950 ramp

primary
#5A6212
secondary
#40369A
accent
#3CEC4E
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A6212

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

Preview Lab → · Contrast checker → · Palette generator →

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