#5A5D12#5A5D12

#5A5D12 is a mid, moderate yellow. Relative luminance 0.100; OKLCH L 46.1% C 0.093 H 111.9°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#5A5D12
RGBrgb(90, 93, 18)
HSLhsl(62, 68%, 22%)
HSVhsv(62, 81%, 36%)
CMYKcmyk(3.2%, 0%, 80.6%, 63.5%)
CIE-LABlab(37.93, -11.14, 39.53)
CIE-LCHlch(37.93, 41.07, 105.74°)
OKLaboklab(46.11% -0.0348 0.0867)
OKLCHoklch(46.11% 0.093 111.9)
XYZxyz(8.2403, 10.0462, 2.0772)
Luminance0.1005 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5D12 #15125D
analogous
#5D3B12 #5A5D12 #355D12
triadic
#5A5D12 #125A5D #5D125A
tetradic
#5A5D12 #125D3B #15125D #5D1235
square
#5A5D12 #125D3B #15125D #5D1235
split-complementary
#5A5D12 #12355D #3B125D
monochromatic
#191A05 #282A08 #5A5D12 #8C901C #BDC426

Accessibility & contrast

On white

6.98
#5A5D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5A5D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5D12
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5D12#FFFFFF#000000##FFFFFF
##5A5D121.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655802
Deuteranopia (green-blind)
#655A18
Tritanopia (blue-blind)
#61574F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a5d12;
/* rgb */ color: rgb(90, 93, 18);
/* oklch */ color: oklch(46.1% 0.093 111.9);
Tailwind
colors: {
  custom: {
    50: '#8b8a57',
    500: '#5a5d12',
    950: '#000000',
  },
}
SCSS
$custom: #5a5d12;
$custom-light: #8b8a57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5d12",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 18
  },
  "hsl": {
    "h": 62.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.46105,
    "c": 0.09347,
    "h": 111.9
  },
  "luminance": 0.10046
}

Semantic roles & 50–950 ramp

primary
#5A5D12
secondary
#393595
accent
#3DEA44
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0B03
muted
#7D7C78

Preview Lab

Preview with #5A5D12

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

Preview Lab → · Contrast checker → · Palette generator →

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