#5F6712#5F6712

#5F6712 is a mid, moderate yellow. Relative luminance 0.122; OKLCH L 49.1% C 0.104 H 115.1°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5F6712
RGBrgb(95, 103, 18)
HSLhsl(66, 70%, 24%)
HSVhsv(66, 83%, 40%)
CMYKcmyk(7.8%, 0%, 82.5%, 59.6%)
CIE-LABlab(41.50, -14.34, 42.96)
CIE-LCHlch(41.50, 45.29, 108.46°)
OKLaboklab(49.08% -0.044 0.0938)
OKLCHoklch(49.08% 0.104 115.1)
XYZxyz(9.6790, 12.1772, 2.4127)
Luminance0.1218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6712 #1A1267
analogous
#674412 #5F6712 #346712
triadic
#5F6712 #125F67 #67125F
tetradic
#5F6712 #126744 #1A1267 #671234
square
#5F6712 #126744 #1A1267 #671234
split-complementary
#5F6712 #123467 #441267
monochromatic
#181A05 #2F3309 #5F6712 #8F9B1B #BFCF24

Accessibility & contrast

On white

6.11
#5F6712 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5F6712 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6712
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6712#FFFFFF#000000##FFFFFF
##5F67121.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6100
Deuteranopia (green-blind)
#6E631A
Tritanopia (blue-blind)
#666057
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5f6712;
/* rgb */ color: rgb(95, 103, 18);
/* oklch */ color: oklch(49.1% 0.104 115.1);
Tailwind
colors: {
  custom: {
    50: '#8f9259',
    500: '#5f6712',
    950: '#000000',
  },
}
SCSS
$custom: #5f6712;
$custom-light: #8f9259;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6712",
  "rgb": {
    "r": 95,
    "g": 103,
    "b": 18
  },
  "hsl": {
    "h": 65.647,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.49075,
    "c": 0.10361,
    "h": 115.1
  },
  "luminance": 0.12177
}

Semantic roles & 50–950 ramp

primary
#5F6712
secondary
#40369F
accent
#3BED4C
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5F6712

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

Preview Lab → · Contrast checker → · Palette generator →

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