#5A6214#5A6214

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

Color values

HEX#5A6214
RGBrgb(90, 98, 20)
HSLhsl(66, 66%, 23%)
HSVhsv(66, 80%, 38%)
CMYKcmyk(8.2%, 0%, 79.6%, 61.6%)
CIE-LABlab(39.51, -13.85, 40.28)
CIE-LCHlch(39.51, 42.59, 108.98°)
OKLaboklab(47.38% -0.0422 0.0887)
OKLCHoklch(47.38% 0.098 115.4)
XYZxyz(8.7106, 10.9597, 2.3182)
Luminance0.1096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6214 #1C1462
analogous
#624314 #5A6214 #336214
triadic
#5A6214 #145A62 #62145A
tetradic
#5A6214 #146243 #1C1462 #621433
square
#5A6214 #146243 #1C1462 #621433
split-complementary
#5A6214 #143362 #431462
monochromatic
#171905 #2B2F0A #5A6214 #89951E #B7C829

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6214#FFFFFF#000000##FFFFFF
##5A62141.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)
#6A5D04
Deuteranopia (green-blind)
#695E1B
Tritanopia (blue-blind)
#605C53
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a6214;
/* rgb */ color: rgb(90, 98, 20);
/* oklch */ color: oklch(47.4% 0.098 115.4);
Tailwind
colors: {
  custom: {
    50: '#8b8e59',
    500: '#5a6214',
    950: '#000000',
  },
}
SCSS
$custom: #5a6214;
$custom-light: #8b8e59;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6214",
  "rgb": {
    "r": 90,
    "g": 98,
    "b": 20
  },
  "hsl": {
    "h": 66.154,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.47381,
    "c": 0.09822,
    "h": 115.4
  },
  "luminance": 0.1096
}

Semantic roles & 50–950 ramp

primary
#5A6214
secondary
#423899
accent
#3FE950
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6214

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

Preview Lab → · Contrast checker → · Palette generator →

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