#5A6310#5A6310

#5A6310 is a mid, moderate yellow. Relative luminance 0.111; OKLCH L 47.6% C 0.102 H 116.0°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5A6310
RGBrgb(90, 99, 16)
HSLhsl(67, 72%, 23%)
HSVhsv(67, 84%, 39%)
CMYKcmyk(9.1%, 0%, 83.8%, 61.2%)
CIE-LABlab(39.81, -14.59, 41.93)
CIE-LCHlch(39.81, 44.40, 109.18°)
OKLaboklab(47.61% -0.0446 0.0914)
OKLCHoklch(47.61% 0.102 116)
XYZxyz(8.7721, 11.1349, 2.1773)
Luminance0.1114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6310 #191063
analogous
#634210 #5A6310 #306310
triadic
#5A6310 #105A63 #63105A
tetradic
#5A6310 #106342 #191063 #631030
square
#5A6310 #106342 #191063 #631030
split-complementary
#5A6310 #103063 #421063
monochromatic
#181A04 #2A2E07 #5A6310 #8A9819 #BACC21

Accessibility & contrast

On white

6.51
#5A6310 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5A6310 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6310
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6310#FFFFFF#000000##FFFFFF
##5A63101.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5D00
Deuteranopia (green-blind)
#6A5E18
Tritanopia (blue-blind)
#605D54
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a6310;
/* rgb */ color: rgb(90, 99, 16);
/* oklch */ color: oklch(47.6% 0.102 116.0);
Tailwind
colors: {
  custom: {
    50: '#8c8f57',
    500: '#5a6310',
    950: '#000000',
  },
}
SCSS
$custom: #5a6310;
$custom-light: #8c8f57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6310",
  "rgb": {
    "r": 90,
    "g": 99,
    "b": 16
  },
  "hsl": {
    "h": 66.506,
    "s": 72.174,
    "l": 22.549
  },
  "oklch": {
    "l": 0.47611,
    "c": 0.10172,
    "h": 116
  },
  "luminance": 0.11135
}

Semantic roles & 50–950 ramp

primary
#5A6310
secondary
#3E339C
accent
#39EF4D
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A6310

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

Preview Lab → · Contrast checker → · Palette generator →

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