#5F6811#5F6811

#5F6811 is a mid, moderate yellow. Relative luminance 0.124; OKLCH L 49.3% C 0.105 H 115.7°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5F6811
RGBrgb(95, 104, 17)
HSLhsl(66, 72%, 24%)
HSVhsv(66, 84%, 41%)
CMYKcmyk(8.7%, 0%, 83.7%, 59.2%)
CIE-LABlab(41.80, -14.93, 43.56)
CIE-LCHlch(41.80, 46.04, 108.92°)
OKLaboklab(49.32% -0.0457 0.0949)
OKLCHoklch(49.32% 0.105 115.7)
XYZxyz(9.7711, 12.3742, 2.4039)
Luminance0.1237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6811 #1A1168
analogous
#684511 #5F6811 #336811
triadic
#5F6811 #115F68 #68115F
tetradic
#5F6811 #116845 #1A1168 #681133
square
#5F6811 #116845 #1A1168 #681133
split-complementary
#5F6811 #113368 #451168
monochromatic
#181A04 #2F3308 #5F6811 #8F9D1A #BFD122

Accessibility & contrast

On white

6.04
#5F6811 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5F6811 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6811
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6811#FFFFFF#000000##FFFFFF
##5F68111.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706200
Deuteranopia (green-blind)
#6F6319
Tritanopia (blue-blind)
#666158
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f6811;
/* rgb */ color: rgb(95, 104, 17);
/* oklch */ color: oklch(49.3% 0.105 115.7);
Tailwind
colors: {
  custom: {
    50: '#8f9358',
    500: '#5f6811',
    950: '#000000',
  },
}
SCSS
$custom: #5f6811;
$custom-light: #8f9358;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6811",
  "rgb": {
    "r": 95,
    "g": 104,
    "b": 17
  },
  "hsl": {
    "h": 66.207,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.49321,
    "c": 0.10532,
    "h": 115.7
  },
  "luminance": 0.12374
}

Semantic roles & 50–950 ramp

primary
#5F6811
secondary
#4035A0
accent
#39EF4C
background
#F9F9F5
surface
#F1F1E9
border
#CBCBC5
text
#0D0D04
muted
#7E7E79

Preview Lab

Preview with #5F6811

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

Preview Lab → · Contrast checker → · Palette generator →

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