#5A5E12#5A5E12

#5A5E12 is a mid, moderate yellow. Relative luminance 0.102; OKLCH L 46.4% C 0.095 H 112.6°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5A5E12
RGBrgb(90, 94, 18)
HSLhsl(63, 68%, 22%)
HSVhsv(63, 81%, 37%)
CMYKcmyk(4.3%, 0%, 80.9%, 63.1%)
CIE-LABlab(38.24, -11.71, 39.83)
CIE-LCHlch(38.24, 41.51, 106.38°)
OKLaboklab(46.36% -0.0364 0.0873)
OKLCHoklch(46.36% 0.095 112.6)
XYZxyz(8.3286, 10.2229, 2.1066)
Luminance0.1022 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5E12 #16125E
analogous
#5E3C12 #5A5E12 #345E12
triadic
#5A5E12 #125A5E #5E125A
tetradic
#5A5E12 #125E3C #16125E #5E1234
square
#5A5E12 #125E3C #16125E #5E1234
split-complementary
#5A5E12 #12345E #3C125E
monochromatic
#191A05 #292B08 #5A5E12 #8B911C #BCC526

Accessibility & contrast

On white

6.90
#5A5E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5A5E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5E12
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5E12#FFFFFF#000000##FFFFFF
##5A5E121.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665902
Deuteranopia (green-blind)
#665B19
Tritanopia (blue-blind)
#615850
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a5e12;
/* rgb */ color: rgb(90, 94, 18);
/* oklch */ color: oklch(46.4% 0.095 112.6);
Tailwind
colors: {
  custom: {
    50: '#8b8b57',
    500: '#5a5e12',
    950: '#000000',
  },
}
SCSS
$custom: #5a5e12;
$custom-light: #8b8b57;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5e12",
  "rgb": {
    "r": 90,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 63.158,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.46357,
    "c": 0.09463,
    "h": 112.6
  },
  "luminance": 0.10223
}

Semantic roles & 50–950 ramp

primary
#5A5E12
secondary
#3B3596
accent
#3DEB46
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5A5E12

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

Preview Lab → · Contrast checker → · Palette generator →

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