#5A6813#5A6813

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

Color values

HEX#5A6813
RGBrgb(90, 104, 19)
HSLhsl(70, 69%, 24%)
HSVhsv(70, 82%, 41%)
CMYKcmyk(13.5%, 0%, 81.7%, 59.2%)
CIE-LABlab(41.41, -17.18, 42.39)
CIE-LCHlch(41.41, 45.74, 112.06°)
OKLaboklab(48.9% -0.0514 0.093)
OKLCHoklch(48.9% 0.106 119)
XYZxyz(9.2845, 12.1214, 2.4665)
Luminance0.1212 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6813 #211368
analogous
#684C13 #5A6813 #306813
triadic
#5A6813 #135A68 #68135A
tetradic
#5A6813 #13684C #211368 #681330
square
#5A6813 #13684C #211368 #681330
split-complementary
#5A6813 #133068 #4C1368
monochromatic
#161A05 #2D340A #5A6813 #879C1C #B4CF26

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6813#FFFFFF#000000##FFFFFF
##5A68131.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)
#6E621B
Tritanopia (blue-blind)
#606258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6813;
/* rgb */ color: rgb(90, 104, 19);
/* oklch */ color: oklch(48.9% 0.106 119.0);
Tailwind
colors: {
  custom: {
    50: '#8c9359',
    500: '#5a6813',
    950: '#000000',
  },
}
SCSS
$custom: #5a6813;
$custom-light: #8c9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6813",
  "rgb": {
    "r": 90,
    "g": 104,
    "b": 19
  },
  "hsl": {
    "h": 69.882,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.48904,
    "c": 0.10626,
    "h": 119
  },
  "luminance": 0.12121
}

Semantic roles & 50–950 ramp

primary
#5A6813
secondary
#49379F
accent
#3CEC59
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A6813

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

Preview Lab → · Contrast checker → · Palette generator →

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