#5E5C12#5E5C12

#5E5C12 is a mid, moderate yellow. Relative luminance 0.101; OKLCH L 46.2% C 0.091 H 107.9°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5E5C12
RGBrgb(94, 92, 18)
HSLhsl(58, 68%, 22%)
HSVhsv(58, 81%, 37%)
CMYKcmyk(0%, 2.1%, 80.9%, 63.1%)
CIE-LABlab(37.98, -8.62, 39.72)
CIE-LCHlch(37.98, 40.65, 102.25°)
OKLaboklab(46.24% -0.0281 0.087)
OKLCHoklch(46.24% 0.091 107.9)
XYZxyz(8.5528, 10.0779, 2.0669)
Luminance0.1008 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5C12 #12145E
analogous
#5E3612 #5E5C12 #3A5E12
triadic
#5E5C12 #125E5C #5C125E
tetradic
#5E5C12 #125E36 #12145E #5E123A
square
#5E5C12 #125E36 #12145E #5E123A
split-complementary
#5E5C12 #123A5E #36125E
monochromatic
#1A1905 #2B2A08 #5E5C12 #918E1C #C5C126

Accessibility & contrast

On white

6.96
#5E5C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5E5C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E5C12
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5C12#FFFFFF#000000##FFFFFF
##5E5C121.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645803
Deuteranopia (green-blind)
#665B18
Tritanopia (blue-blind)
#65554E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e5c12;
/* rgb */ color: rgb(94, 92, 18);
/* oklch */ color: oklch(46.2% 0.091 107.9);
Tailwind
colors: {
  custom: {
    50: '#8f8957',
    500: '#5e5c12',
    950: '#000000',
  },
}
SCSS
$custom: #5e5c12;
$custom-light: #8f8957;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5c12",
  "rgb": {
    "r": 94,
    "g": 92,
    "b": 18
  },
  "hsl": {
    "h": 58.421,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.4624,
    "c": 0.09137,
    "h": 107.9
  },
  "luminance": 0.10078
}

Semantic roles & 50–950 ramp

primary
#5E5C12
secondary
#353896
accent
#42EB3D
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5E5C12

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

Preview Lab → · Contrast checker → · Palette generator →

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