#5F6211#5F6211

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

Color values

HEX#5F6211
RGBrgb(95, 98, 17)
HSLhsl(62, 70%, 23%)
HSVhsv(62, 83%, 38%)
CMYKcmyk(3.1%, 0%, 82.7%, 61.6%)
CIE-LABlab(39.93, -11.60, 41.88)
CIE-LCHlch(39.93, 43.46, 105.48°)
OKLaboklab(47.82% -0.0365 0.0913)
OKLCHoklch(47.82% 0.098 111.8)
XYZxyz(9.1885, 11.2090, 2.2097)
Luminance0.1121 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6211 #141162
analogous
#623C11 #5F6211 #376211
triadic
#5F6211 #115F62 #62115F
tetradic
#5F6211 #11623C #141162 #621137
square
#5F6211 #11623C #141162 #621137
split-complementary
#5F6211 #113762 #3C1162
monochromatic
#191A05 #2C2E08 #5F6211 #92961A #C4CA23

Accessibility & contrast

On white

6.48
#5F6211 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5F6211 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6211
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6211#FFFFFF#000000##FFFFFF
##5F62111.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f6211;
/* rgb */ color: rgb(95, 98, 17);
/* oklch */ color: oklch(47.8% 0.098 111.8);
Tailwind
colors: {
  custom: {
    50: '#8f8e57',
    500: '#5f6211',
    950: '#000000',
  },
}
SCSS
$custom: #5f6211;
$custom-light: #8f8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6211",
  "rgb": {
    "r": 95,
    "g": 98,
    "b": 17
  },
  "hsl": {
    "h": 62.222,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.47818,
    "c": 0.09833,
    "h": 111.8
  },
  "luminance": 0.11209
}

Semantic roles & 50–950 ramp

primary
#5F6211
secondary
#38349A
accent
#3BED41
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C03
muted
#7E7D78

Preview Lab

Preview with #5F6211

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

Preview Lab → · Contrast checker → · Palette generator →

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