#5B5E12#5B5E12

#5B5E12 is a mid, moderate yellow. Relative luminance 0.103; OKLCH L 46.5% C 0.094 H 111.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5B5E12
RGBrgb(91, 94, 18)
HSLhsl(62, 68%, 22%)
HSVhsv(62, 81%, 37%)
CMYKcmyk(3.2%, 0%, 80.9%, 63.1%)
CIE-LABlab(38.33, -11.23, 39.94)
CIE-LCHlch(38.33, 41.49, 105.70°)
OKLaboklab(46.45% -0.0351 0.0876)
OKLCHoklch(46.45% 0.094 111.9)
XYZxyz(8.4266, 10.2734, 2.1112)
Luminance0.1027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5E12 #15125E
analogous
#5E3B12 #5B5E12 #355E12
triadic
#5B5E12 #125B5E #5E125B
tetradic
#5B5E12 #125E3B #15125E #5E1235
square
#5B5E12 #125E3B #15125E #5E1235
split-complementary
#5B5E12 #12355E #3B125E
monochromatic
#191A05 #292B08 #5B5E12 #8D911C #BEC526

Accessibility & contrast

On white

6.87
#5B5E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5B5E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5E12
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5E12#FFFFFF#000000##FFFFFF
##5B5E121.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b5e12;
/* rgb */ color: rgb(91, 94, 18);
/* oklch */ color: oklch(46.5% 0.094 111.9);
Tailwind
colors: {
  custom: {
    50: '#8c8b57',
    500: '#5b5e12',
    950: '#000000',
  },
}
SCSS
$custom: #5b5e12;
$custom-light: #8c8b57;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5e12",
  "rgb": {
    "r": 91,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 62.368,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.4645,
    "c": 0.09434,
    "h": 111.9
  },
  "luminance": 0.10273
}

Semantic roles & 50–950 ramp

primary
#5B5E12
secondary
#393596
accent
#3DEB44
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5B5E12

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

Preview Lab → · Contrast checker → · Palette generator →

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