#5F6612#5F6612

#5F6612 is a mid, moderate yellow. Relative luminance 0.120; OKLCH L 48.8% C 0.102 H 114.5°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5F6612
RGBrgb(95, 102, 18)
HSLhsl(65, 70%, 24%)
HSVhsv(65, 82%, 40%)
CMYKcmyk(6.9%, 0%, 82.4%, 60%)
CIE-LABlab(41.18, -13.79, 42.67)
CIE-LCHlch(41.18, 44.85, 107.91°)
OKLaboklab(48.82% -0.0425 0.0932)
OKLCHoklch(48.82% 0.102 114.5)
XYZxyz(9.5802, 11.9795, 2.3798)
Luminance0.1198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6612 #191266
analogous
#664312 #5F6612 #356612
triadic
#5F6612 #125F66 #66125F
tetradic
#5F6612 #126643 #191266 #661235
square
#5F6612 #126643 #191266 #661235
split-complementary
#5F6612 #123566 #431266
monochromatic
#181A05 #2F3209 #5F6612 #8F9A1B #C0CE24

Accessibility & contrast

On white

6.18
#5F6612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5F6612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6612
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6612#FFFFFF#000000##FFFFFF
##5F66121.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6000
Deuteranopia (green-blind)
#6E621A
Tritanopia (blue-blind)
#665F57
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5f6612;
/* rgb */ color: rgb(95, 102, 18);
/* oklch */ color: oklch(48.8% 0.102 114.5);
Tailwind
colors: {
  custom: {
    50: '#8f9158',
    500: '#5f6612',
    950: '#000000',
  },
}
SCSS
$custom: #5f6612;
$custom-light: #8f9158;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6612",
  "rgb": {
    "r": 95,
    "g": 102,
    "b": 18
  },
  "hsl": {
    "h": 65,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.48824,
    "c": 0.10242,
    "h": 114.5
  },
  "luminance": 0.11979
}

Semantic roles & 50–950 ramp

primary
#5F6612
secondary
#3F369E
accent
#3BED4A
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5F6612

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

Preview Lab → · Contrast checker → · Palette generator →

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