#5E6012#5E6012

#5E6012 is a mid, moderate yellow. Relative luminance 0.108; OKLCH L 47.2% C 0.096 H 111.1°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5E6012
RGBrgb(94, 96, 18)
HSLhsl(62, 68%, 22%)
HSVhsv(62, 81%, 38%)
CMYKcmyk(2.1%, 0%, 81.3%, 62.4%)
CIE-LABlab(39.22, -10.91, 40.86)
CIE-LCHlch(39.22, 42.29, 104.95°)
OKLaboklab(47.23% -0.0344 0.0894)
OKLCHoklch(47.23% 0.096 111.1)
XYZxyz(8.9085, 10.7893, 2.1854)
Luminance0.1079 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E6012 #141260
analogous
#603B12 #5E6012 #376012
triadic
#5E6012 #125E60 #60125E
tetradic
#5E6012 #12603B #141260 #601237
square
#5E6012 #12603B #141260 #601237
split-complementary
#5E6012 #123760 #3B1260
monochromatic
#191A05 #2C2C08 #5E6012 #90941C #C3C725

Accessibility & contrast

On white

6.65
#5E6012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5E6012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E6012
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E6012#FFFFFF#000000##FFFFFF
##5E60121.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B01
Deuteranopia (green-blind)
#695D19
Tritanopia (blue-blind)
#655951
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e6012;
/* rgb */ color: rgb(94, 96, 18);
/* oklch */ color: oklch(47.2% 0.096 111.1);
Tailwind
colors: {
  custom: {
    50: '#8e8c57',
    500: '#5e6012',
    950: '#000000',
  },
}
SCSS
$custom: #5e6012;
$custom-light: #8e8c57;
$custom-dark: #000000;
JSON
{
  "hex": "#5e6012",
  "rgb": {
    "r": 94,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 61.538,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.47232,
    "c": 0.09579,
    "h": 111.1
  },
  "luminance": 0.10789
}

Semantic roles & 50–950 ramp

primary
#5E6012
secondary
#383698
accent
#3DEB41
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C03
muted
#7E7D78

Preview Lab

Preview with #5E6012

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

Preview Lab → · Contrast checker → · Palette generator →

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