#5F6012#5F6012

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

Color values

HEX#5F6012
RGBrgb(95, 96, 18)
HSLhsl(61, 68%, 22%)
HSVhsv(61, 81%, 38%)
CMYKcmyk(1%, 0%, 81.3%, 62.4%)
CIE-LABlab(39.31, -10.43, 40.98)
CIE-LCHlch(39.31, 42.28, 104.28°)
OKLaboklab(47.33% -0.0332 0.0896)
OKLCHoklch(47.33% 0.096 110.3)
XYZxyz(9.0117, 10.8426, 2.1903)
Luminance0.1084 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6012 #131260
analogous
#603A12 #5F6012 #386012
triadic
#5F6012 #125F60 #60125F
tetradic
#5F6012 #12603A #131260 #601238
square
#5F6012 #12603A #131260 #601238
split-complementary
#5F6012 #123860 #3A1260
monochromatic
#1A1A05 #2C2C08 #5F6012 #92941C #C5C725

Accessibility & contrast

On white

6.63
#5F6012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5F6012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6012
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6012#FFFFFF#000000##FFFFFF
##5F60121.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B01
Deuteranopia (green-blind)
#695E19
Tritanopia (blue-blind)
#665951
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f6012;
/* rgb */ color: rgb(95, 96, 18);
/* oklch */ color: oklch(47.3% 0.096 110.3);
Tailwind
colors: {
  custom: {
    50: '#8f8c57',
    500: '#5f6012',
    950: '#000000',
  },
}
SCSS
$custom: #5f6012;
$custom-light: #8f8c57;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6012",
  "rgb": {
    "r": 95,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 60.769,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.47327,
    "c": 0.09552,
    "h": 110.3
  },
  "luminance": 0.10842
}

Semantic roles & 50–950 ramp

primary
#5F6012
secondary
#373698
accent
#3DEB3F
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C03
muted
#7E7D78

Preview Lab

Preview with #5F6012

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

Preview Lab → · Contrast checker → · Palette generator →

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