#5D6212#5D6212

#5D6212 is a mid, moderate yellow. Relative luminance 0.111; OKLCH L 47.6% C 0.098 H 113.3°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5D6212
RGBrgb(93, 98, 18)
HSLhsl(64, 69%, 23%)
HSVhsv(64, 82%, 38%)
CMYKcmyk(5.1%, 0%, 81.6%, 61.6%)
CIE-LABlab(39.76, -12.52, 41.32)
CIE-LCHlch(39.76, 43.17, 106.85°)
OKLaboklab(47.64% -0.0388 0.0904)
OKLCHoklch(47.64% 0.098 113.3)
XYZxyz(8.9914, 11.1064, 2.2423)
Luminance0.1111 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D6212 #171262
analogous
#623F12 #5D6212 #356212
triadic
#5D6212 #125D62 #62125D
tetradic
#5D6212 #12623F #171262 #621235
square
#5D6212 #12623F #171262 #621235
split-complementary
#5D6212 #123562 #3F1262
monochromatic
#191A05 #2C2E09 #5D6212 #8E961B #BFC925

Accessibility & contrast

On white

6.52
#5D6212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5D6212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D6212
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D6212#FFFFFF#000000##FFFFFF
##5D62121.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#6A5E19
Tritanopia (blue-blind)
#645C53
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5d6212;
/* rgb */ color: rgb(93, 98, 18);
/* oklch */ color: oklch(47.6% 0.098 113.3);
Tailwind
colors: {
  custom: {
    50: '#8e8e58',
    500: '#5d6212',
    950: '#000000',
  },
}
SCSS
$custom: #5d6212;
$custom-light: #8e8e58;
$custom-dark: #000000;
JSON
{
  "hex": "#5d6212",
  "rgb": {
    "r": 93,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 63.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.47639,
    "c": 0.09839,
    "h": 113.3
  },
  "luminance": 0.11106
}

Semantic roles & 50–950 ramp

primary
#5D6212
secondary
#3C369A
accent
#3CEC47
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0D0C04
muted
#7D7D79

Preview Lab

Preview with #5D6212

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

Preview Lab → · Contrast checker → · Palette generator →

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