#5F6512#5F6512

#5F6512 is a mid, moderate yellow. Relative luminance 0.118; OKLCH L 48.6% C 0.101 H 113.9°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5F6512
RGBrgb(95, 101, 18)
HSLhsl(64, 70%, 23%)
HSVhsv(64, 82%, 40%)
CMYKcmyk(5.9%, 0%, 82.2%, 60.4%)
CIE-LABlab(40.87, -13.23, 42.39)
CIE-LCHlch(40.87, 44.41, 107.34°)
OKLaboklab(48.57% -0.0409 0.0926)
OKLCHoklch(48.57% 0.101 113.9)
XYZxyz(9.4825, 11.7841, 2.3472)
Luminance0.1178 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6512 #181265
analogous
#654112 #5F6512 #356512
triadic
#5F6512 #125F65 #65125F
tetradic
#5F6512 #126541 #181265 #651235
square
#5F6512 #126541 #181265 #651235
split-complementary
#5F6512 #123565 #411265
monochromatic
#181A05 #2E3109 #5F6512 #90991B #C1CD25

Accessibility & contrast

On white

6.26
#5F6512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#5F6512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F6512
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6512#FFFFFF#000000##FFFFFF
##5F65121.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6000
Deuteranopia (green-blind)
#6D611A
Tritanopia (blue-blind)
#665E56
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f6512;
/* rgb */ color: rgb(95, 101, 18);
/* oklch */ color: oklch(48.6% 0.101 113.9);
Tailwind
colors: {
  custom: {
    50: '#8f9058',
    500: '#5f6512',
    950: '#000000',
  },
}
SCSS
$custom: #5f6512;
$custom-light: #8f9058;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6512",
  "rgb": {
    "r": 95,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 64.337,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.48574,
    "c": 0.10124,
    "h": 113.9
  },
  "luminance": 0.11784
}

Semantic roles & 50–950 ramp

primary
#5F6512
secondary
#3D369D
accent
#3BED48
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5F6512

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

Preview Lab → · Contrast checker → · Palette generator →

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