#5E5A12#5E5A12

#5E5A12 is a mid, moderate yellow. Relative luminance 0.097; OKLCH L 45.7% C 0.089 H 106.2°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5E5A12
RGBrgb(94, 90, 18)
HSLhsl(57, 68%, 22%)
HSVhsv(57, 81%, 37%)
CMYKcmyk(0%, 4.3%, 80.9%, 63.1%)
CIE-LABlab(37.36, -7.46, 39.15)
CIE-LCHlch(37.36, 39.86, 100.79°)
OKLaboklab(45.75% -0.0248 0.0857)
OKLCHoklch(45.75% 0.089 106.2)
XYZxyz(8.3818, 9.7360, 2.0099)
Luminance0.0974 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5A12 #12165E
analogous
#5E3412 #5E5A12 #3C5E12
triadic
#5E5A12 #125E5A #5A125E
tetradic
#5E5A12 #125E34 #12165E #5E123C
square
#5E5A12 #125E34 #12165E #5E123C
split-complementary
#5E5A12 #123C5E #34125E
monochromatic
#1A1905 #2B2908 #5E5A12 #918B1C #C5BC26

Accessibility & contrast

On white

7.13
#5E5A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5E5A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E5A12
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5A12#FFFFFF#000000##FFFFFF
##5E5A121.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625603
Deuteranopia (green-blind)
#645918
Tritanopia (blue-blind)
#66534C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e5a12;
/* rgb */ color: rgb(94, 90, 18);
/* oklch */ color: oklch(45.7% 0.089 106.2);
Tailwind
colors: {
  custom: {
    50: '#8f8857',
    500: '#5e5a12',
    950: '#000000',
  },
}
SCSS
$custom: #5e5a12;
$custom-light: #8f8857;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5a12",
  "rgb": {
    "r": 94,
    "g": 90,
    "b": 18
  },
  "hsl": {
    "h": 56.842,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.45748,
    "c": 0.08926,
    "h": 106.2
  },
  "luminance": 0.09736
}

Semantic roles & 50–950 ramp

primary
#5E5A12
secondary
#353B96
accent
#46EB3D
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5E5A12

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

Preview Lab → · Contrast checker → · Palette generator →

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