#5F5F12#5F5F12

#5F5F12 is a mid, moderate yellow. Relative luminance 0.107; OKLCH L 47.1% C 0.094 H 109.5°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5F5F12
RGBrgb(95, 95, 18)
HSLhsl(60, 68%, 22%)
HSVhsv(60, 81%, 37%)
CMYKcmyk(0%, 0%, 81.1%, 62.7%)
CIE-LABlab(39.00, -9.86, 40.69)
CIE-LCHlch(39.00, 41.87, 103.62°)
OKLaboklab(47.08% -0.0316 0.089)
OKLCHoklch(47.08% 0.094 109.5)
XYZxyz(8.9210, 10.6613, 2.1600)
Luminance0.1066 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5F12 #12125F
analogous
#5F3912 #5F5F12 #395F12
triadic
#5F5F12 #125F5F #5F125F
tetradic
#5F5F12 #125F39 #12125F #5F1239
square
#5F5F12 #125F39 #12125F #5F1239
split-complementary
#5F5F12 #12395F #39125F
monochromatic
#1A1A05 #2C2C08 #5F5F12 #92921C #C6C625

Accessibility & contrast

On white

6.70
#5F5F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5F5F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5F12
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5F12#FFFFFF#000000##FFFFFF
##5F5F121.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675B01
Deuteranopia (green-blind)
#685D18
Tritanopia (blue-blind)
#665851
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f5f12;
/* rgb */ color: rgb(95, 95, 18);
/* oklch */ color: oklch(47.1% 0.094 109.5);
Tailwind
colors: {
  custom: {
    50: '#8f8c57',
    500: '#5f5f12',
    950: '#000000',
  },
}
SCSS
$custom: #5f5f12;
$custom-light: #8f8c57;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5f12",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 18
  },
  "hsl": {
    "h": 60,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.47079,
    "c": 0.09441,
    "h": 109.5
  },
  "luminance": 0.10661
}

Semantic roles & 50–950 ramp

primary
#5F5F12
secondary
#363697
accent
#3DEB3D
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C03
muted
#7E7D78

Preview Lab

Preview with #5F5F12

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

Preview Lab → · Contrast checker → · Palette generator →

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