#5F366B#5F366B

#5F366B is a dark, moderate purple. Relative luminance 0.061; OKLCH L 40.6% C 0.098 H 318.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5F366B
RGBrgb(95, 54, 107)
HSLhsl(286, 33%, 32%)
HSVhsv(286, 50%, 42%)
CMYKcmyk(11.2%, 49.5%, 0%, 58%)
CIE-LABlab(29.75, 28.09, -23.57)
CIE-LCHlch(29.75, 36.67, 319.99°)
OKLaboklab(40.59% 0.0731 -0.0652)
OKLCHoklch(40.59% 0.098 318.2)
XYZxyz(8.6920, 6.1331, 14.6330)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F366B #426B36
analogous
#45366B #5F366B #6B365D
triadic
#5F366B #6B5F36 #366B5F
tetradic
#5F366B #6B4536 #426B36 #365D6B
square
#5F366B #6B4536 #426B36 #365D6B
split-complementary
#5F366B #5D6B36 #366B45
monochromatic
#170D1A #3B2142 #5F366B #834B94 #A268B3

Accessibility & contrast

On white

9.43
#5F366B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5F366B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F366B
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F366B#FFFFFF#000000##FFFFFF
##5F366B1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D436D
Deuteranopia (green-blind)
#394769
Tritanopia (blue-blind)
#5F3D4B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f366b;
/* rgb */ color: rgb(95, 54, 107);
/* oklch */ color: oklch(40.6% 0.098 318.2);
Tailwind
colors: {
  custom: {
    50: '#8e6e95',
    500: '#5f366b',
    950: '#000000',
  },
}
SCSS
$custom: #5f366b;
$custom-light: #8e6e95;
$custom-dark: #000000;
JSON
{
  "hex": "#5f366b",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 107
  },
  "hsl": {
    "h": 286.415,
    "s": 32.919,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40593,
    "c": 0.09796,
    "h": 318.2
  },
  "luminance": 0.06133
}

Semantic roles & 50–950 ramp

primary
#5F366B
secondary
#6E9C61
accent
#C95F77
background
#F8F6F9
surface
#F0ECF1
border
#CBC7CB
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5F366B

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

Preview Lab → · Contrast checker → · Palette generator →

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