#5A6714#5A6714

#5A6714 is a mid, moderate yellow. Relative luminance 0.119; OKLCH L 48.7% C 0.104 H 118.4°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5A6714
RGBrgb(90, 103, 20)
HSLhsl(69, 67%, 24%)
HSVhsv(69, 81%, 40%)
CMYKcmyk(12.6%, 0%, 80.6%, 59.6%)
CIE-LABlab(41.10, -16.59, 41.76)
CIE-LCHlch(41.10, 44.93, 111.67°)
OKLaboklab(48.65% -0.0497 0.0918)
OKLCHoklch(48.65% 0.104 118.4)
XYZxyz(9.1932, 11.9247, 2.4791)
Luminance0.1192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6714 #211467
analogous
#674B14 #5A6714 #316714
triadic
#5A6714 #145A67 #67145A
tetradic
#5A6714 #14674B #211467 #671431
square
#5A6714 #14674B #211467 #671431
split-complementary
#5A6714 #143167 #4B1467
monochromatic
#161A05 #2D340A #5A6714 #879A1E #B4CD28

Accessibility & contrast

On white

6.20
#5A6714 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5A6714 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6714
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6714#FFFFFF#000000##FFFFFF
##5A67141.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6101
Deuteranopia (green-blind)
#6D611C
Tritanopia (blue-blind)
#606157
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a6714;
/* rgb */ color: rgb(90, 103, 20);
/* oklch */ color: oklch(48.7% 0.104 118.4);
Tailwind
colors: {
  custom: {
    50: '#8b9259',
    500: '#5a6714',
    950: '#000000',
  },
}
SCSS
$custom: #5a6714;
$custom-light: #8b9259;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6714",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 20
  },
  "hsl": {
    "h": 69.398,
    "s": 67.48,
    "l": 24.118
  },
  "oklch": {
    "l": 0.48654,
    "c": 0.10444,
    "h": 118.4
  },
  "luminance": 0.11925
}

Semantic roles & 50–950 ramp

primary
#5A6714
secondary
#49399E
accent
#3DEA59
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0D04
muted
#7D7D79

Preview Lab

Preview with #5A6714

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

Preview Lab → · Contrast checker → · Palette generator →

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