#5E6212#5E6212

#5E6212 is a mid, moderate yellow. Relative luminance 0.112; OKLCH L 47.7% C 0.098 H 112.5°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#5E6212
RGBrgb(94, 98, 18)
HSLhsl(63, 69%, 23%)
HSVhsv(63, 82%, 38%)
CMYKcmyk(4.1%, 0%, 81.6%, 61.6%)
CIE-LABlab(39.85, -12.04, 41.43)
CIE-LCHlch(39.85, 43.14, 106.20°)
OKLaboklab(47.73% -0.0376 0.0906)
OKLCHoklch(47.73% 0.098 112.5)
XYZxyz(9.0933, 11.1589, 2.2470)
Luminance0.1116 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E6212 #161262
analogous
#623E12 #5E6212 #366212
triadic
#5E6212 #125E62 #62125E
tetradic
#5E6212 #12623E #161262 #621236
square
#5E6212 #12623E #161262 #621236
split-complementary
#5E6212 #123662 #3E1262
monochromatic
#191A05 #2C2E09 #5E6212 #90961B #C1C925

Accessibility & contrast

On white

6.50
#5E6212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5E6212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E6212
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E6212#FFFFFF#000000##FFFFFF
##5E62121.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#6A5F19
Tritanopia (blue-blind)
#655B53
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e6212;
/* rgb */ color: rgb(94, 98, 18);
/* oklch */ color: oklch(47.7% 0.098 112.5);
Tailwind
colors: {
  custom: {
    50: '#8f8e58',
    500: '#5e6212',
    950: '#000000',
  },
}
SCSS
$custom: #5e6212;
$custom-light: #8f8e58;
$custom-dark: #000000;
JSON
{
  "hex": "#5e6212",
  "rgb": {
    "r": 94,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 63,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.47731,
    "c": 0.09808,
    "h": 112.5
  },
  "luminance": 0.11159
}

Semantic roles & 50–950 ramp

primary
#5E6212
secondary
#3B369A
accent
#3CEC45
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5E6212

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

Preview Lab → · Contrast checker → · Palette generator →

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