#5F5E12#5F5E12

#5F5E12 is a mid, moderate yellow. Relative luminance 0.105; OKLCH L 46.8% C 0.093 H 108.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5F5E12
RGBrgb(95, 94, 18)
HSLhsl(59, 68%, 22%)
HSVhsv(59, 81%, 37%)
CMYKcmyk(0%, 1.1%, 81.1%, 62.7%)
CIE-LABlab(38.69, -9.29, 40.41)
CIE-LCHlch(38.69, 41.46, 102.94°)
OKLaboklab(46.83% -0.03 0.0884)
OKLCHoklch(46.83% 0.093 108.7)
XYZxyz(8.8315, 10.4823, 2.1302)
Luminance0.1048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5E12 #12135F
analogous
#5F3812 #5F5E12 #3A5F12
triadic
#5F5E12 #125F5E #5E125F
tetradic
#5F5E12 #125F38 #12135F #5F123A
square
#5F5E12 #125F38 #12135F #5F123A
split-complementary
#5F5E12 #123A5F #38125F
monochromatic
#1A1905 #2C2B08 #5F5E12 #92911C #C6C425

Accessibility & contrast

On white

6.78
#5F5E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5F5E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5E12
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5E12#FFFFFF#000000##FFFFFF
##5F5E121.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A02
Deuteranopia (green-blind)
#675C18
Tritanopia (blue-blind)
#665750
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f5e12;
/* rgb */ color: rgb(95, 94, 18);
/* oklch */ color: oklch(46.8% 0.093 108.7);
Tailwind
colors: {
  custom: {
    50: '#8f8b57',
    500: '#5f5e12',
    950: '#000000',
  },
}
SCSS
$custom: #5f5e12;
$custom-light: #8f8b57;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5e12",
  "rgb": {
    "r": 95,
    "g": 94,
    "b": 18
  },
  "hsl": {
    "h": 59.221,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.46832,
    "c": 0.09332,
    "h": 108.7
  },
  "luminance": 0.10482
}

Semantic roles & 50–950 ramp

primary
#5F5E12
secondary
#363797
accent
#3FEB3D
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5F5E12

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

Preview Lab → · Contrast checker → · Palette generator →

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