#5F6517#5F6517

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

Color values

HEX#5F6517
RGBrgb(95, 101, 23)
HSLhsl(65, 63%, 24%)
HSVhsv(65, 77%, 40%)
CMYKcmyk(5.9%, 0%, 77.2%, 60.4%)
CIE-LABlab(40.90, -12.99, 40.61)
CIE-LCHlch(40.90, 42.64, 107.74°)
OKLaboklab(48.61% -0.0398 0.0898)
OKLCHoklch(48.61% 0.098 113.9)
XYZxyz(9.5279, 11.8023, 2.5866)
Luminance0.1180 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F6517 #1D1765
analogous
#654417 #5F6517 #386517
triadic
#5F6517 #175F65 #65175F
tetradic
#5F6517 #176544 #1D1765 #651738
square
#5F6517 #176544 #1D1765 #651738
split-complementary
#5F6517 #173865 #441765
monochromatic
#171906 #30330C #5F6517 #8E9722 #BDC92E

Accessibility & contrast

On white

6.25
#5F6517 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F6517
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F6517#FFFFFF#000000##FFFFFF
##5F65171.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D6008
Deuteranopia (green-blind)
#6D611D
Tritanopia (blue-blind)
#665F56
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5f6517;
/* rgb */ color: rgb(95, 101, 23);
/* oklch */ color: oklch(48.6% 0.098 113.9);
Tailwind
colors: {
  custom: {
    50: '#8f905b',
    500: '#5f6517',
    950: '#000000',
  },
}
SCSS
$custom: #5f6517;
$custom-light: #8f905b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f6517",
  "rgb": {
    "r": 95,
    "g": 101,
    "b": 23
  },
  "hsl": {
    "h": 64.615,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.48606,
    "c": 0.09822,
    "h": 113.9
  },
  "luminance": 0.11802
}

Semantic roles & 50–950 ramp

primary
#5F6517
secondary
#443C9B
accent
#42E64E
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5F6517

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

Preview Lab → · Contrast checker → · Palette generator →

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