#5A6213#5A6213

#5A6213 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#5A6213
RGBrgb(90, 98, 19)
HSLhsl(66, 68%, 23%)
HSVhsv(66, 81%, 38%)
CMYKcmyk(8.2%, 0%, 80.6%, 61.6%)
CIE-LABlab(39.51, -13.90, 40.64)
CIE-LCHlch(39.51, 42.95, 108.88°)
OKLaboklab(47.38% -0.0424 0.0893)
OKLCHoklch(47.38% 0.099 115.4)
XYZxyz(8.7019, 10.9562, 2.2723)
Luminance0.1096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6213 #1B1362
analogous
#624213 #5A6213 #326213
triadic
#5A6213 #135A62 #62135A
tetradic
#5A6213 #136242 #1B1362 #621332
square
#5A6213 #136242 #1B1362 #621332
split-complementary
#5A6213 #133262 #421362
monochromatic
#181A05 #2B2F09 #5A6213 #89951D #B8C927

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6213#FFFFFF#000000##FFFFFF
##5A62131.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)
#6A5D02
Deuteranopia (green-blind)
#695E1A
Tritanopia (blue-blind)
#605C53
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a6213;
/* rgb */ color: rgb(90, 98, 19);
/* oklch */ color: oklch(47.4% 0.099 115.4);
Tailwind
colors: {
  custom: {
    50: '#8b8e58',
    500: '#5a6213',
    950: '#000000',
  },
}
SCSS
$custom: #5a6213;
$custom-light: #8b8e58;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6213",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 19
  },
  "hsl": {
    "h": 66.076,
    "s": 67.521,
    "l": 22.941
  },
  "oklch": {
    "l": 0.47375,
    "c": 0.09882,
    "h": 115.4
  },
  "luminance": 0.10956
}

Semantic roles & 50–950 ramp

primary
#5A6213
secondary
#41379A
accent
#3DEA4F
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6213

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

Preview Lab → · Contrast checker → · Palette generator →

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