#5A5F12#5A5F12

#5A5F12 is a mid, moderate yellow. Relative luminance 0.104; OKLCH L 46.6% C 0.096 H 113.4°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5A5F12
RGBrgb(90, 95, 18)
HSLhsl(64, 68%, 22%)
HSVhsv(64, 81%, 37%)
CMYKcmyk(5.3%, 0%, 81.1%, 62.7%)
CIE-LABlab(38.55, -12.27, 40.12)
CIE-LCHlch(38.55, 41.95, 107.01°)
OKLaboklab(46.61% -0.038 0.088)
OKLCHoklch(46.61% 0.096 113.4)
XYZxyz(8.4181, 10.4019, 2.1365)
Luminance0.1040 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5F12 #17125F
analogous
#5F3E12 #5A5F12 #345F12
triadic
#5A5F12 #125A5F #5F125A
tetradic
#5A5F12 #125F3E #17125F #5F1234
square
#5A5F12 #125F3E #17125F #5F1234
split-complementary
#5A5F12 #12345F #3E125F
monochromatic
#181A05 #292C08 #5A5F12 #8B921C #BBC625

Accessibility & contrast

On white

6.82
#5A5F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5A5F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5F12
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5F12#FFFFFF#000000##FFFFFF
##5A5F121.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675A02
Deuteranopia (green-blind)
#675C19
Tritanopia (blue-blind)
#615951
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a5f12;
/* rgb */ color: rgb(90, 95, 18);
/* oklch */ color: oklch(46.6% 0.096 113.4);
Tailwind
colors: {
  custom: {
    50: '#8b8c57',
    500: '#5a5f12',
    950: '#000000',
  },
}
SCSS
$custom: #5a5f12;
$custom-light: #8b8c57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5f12",
  "rgb": {
    "r": 90,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 63.896,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.46609,
    "c": 0.09581,
    "h": 113.4
  },
  "luminance": 0.10402
}

Semantic roles & 50–950 ramp

primary
#5A5F12
secondary
#3C3697
accent
#3DEB48
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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