#5A6312#5A6312

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

Color values

HEX#5A6312
RGBrgb(90, 99, 18)
HSLhsl(67, 69%, 23%)
HSVhsv(67, 82%, 39%)
CMYKcmyk(9.1%, 0%, 81.8%, 61.2%)
CIE-LABlab(39.82, -14.50, 41.27)
CIE-LCHlch(39.82, 43.75, 109.36°)
OKLaboklab(47.62% -0.0442 0.0904)
OKLCHoklch(47.62% 0.101 116)
XYZxyz(8.7877, 11.1411, 2.2597)
Luminance0.1114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6312 #1B1263
analogous
#634312 #5A6312 #316312
triadic
#5A6312 #125A63 #63125A
tetradic
#5A6312 #126343 #1B1263 #631231
square
#5A6312 #126343 #1B1263 #631231
split-complementary
#5A6312 #123163 #431263
monochromatic
#181A05 #2B2F09 #5A6312 #89971B #B8CB25

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6312#FFFFFF#000000##FFFFFF
##5A63121.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)
#6A5E19
Tritanopia (blue-blind)
#605D54
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a6312;
/* rgb */ color: rgb(90, 99, 18);
/* oklch */ color: oklch(47.6% 0.101 116.0);
Tailwind
colors: {
  custom: {
    50: '#8b8f58',
    500: '#5a6312',
    950: '#000000',
  },
}
SCSS
$custom: #5a6312;
$custom-light: #8b8f58;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6312",
  "rgb": {
    "r": 90,
    "g": 99,
    "b": 18
  },
  "hsl": {
    "h": 66.667,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.47622,
    "c": 0.10063,
    "h": 116
  },
  "luminance": 0.11141
}

Semantic roles & 50–950 ramp

primary
#5A6312
secondary
#41369B
accent
#3CEC4F
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5A6312

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

Preview Lab → · Contrast checker → · Palette generator →

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