#5A5C12#5A5C12

#5A5C12 is a mid, moderate yellow. Relative luminance 0.099; OKLCH L 45.9% C 0.092 H 111.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5A5C12
RGBrgb(90, 92, 18)
HSLhsl(62, 67%, 22%)
HSVhsv(62, 80%, 36%)
CMYKcmyk(2.2%, 0%, 80.4%, 63.9%)
CIE-LABlab(37.61, -10.57, 39.24)
CIE-LCHlch(37.61, 40.64, 105.08°)
OKLaboklab(45.85% -0.0333 0.0861)
OKLCHoklch(45.85% 0.092 111.1)
XYZxyz(8.1531, 9.8718, 2.0481)
Luminance0.0987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5C12 #14125C
analogous
#5C3912 #5A5C12 #355C12
triadic
#5A5C12 #125A5C #5C125A
tetradic
#5A5C12 #125C39 #14125C #5C1235
square
#5A5C12 #125C39 #14125C #5C1235
split-complementary
#5A5C12 #12355C #39125C
monochromatic
#191A05 #282908 #5A5C12 #8C8F1C #BEC226

Accessibility & contrast

On white

7.06
#5A5C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5A5C12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5C12
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5C12#FFFFFF#000000##FFFFFF
##5A5C121.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645803
Deuteranopia (green-blind)
#645918
Tritanopia (blue-blind)
#61564E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a5c12;
/* rgb */ color: rgb(90, 92, 18);
/* oklch */ color: oklch(45.9% 0.092 111.1);
Tailwind
colors: {
  custom: {
    50: '#8b8a57',
    500: '#5a5c12',
    950: '#000000',
  },
}
SCSS
$custom: #5a5c12;
$custom-light: #8b8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5c12",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 61.622,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.45854,
    "c": 0.09231,
    "h": 111.1
  },
  "luminance": 0.09872
}

Semantic roles & 50–950 ramp

primary
#5A5C12
secondary
#383594
accent
#3EEA42
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5C12

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

Preview Lab → · Contrast checker → · Palette generator →

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