#5F366F#5F366F

#5F366F is a dark, moderate purple. Relative luminance 0.062; OKLCH L 40.8% C 0.103 H 315.8°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5F366F
RGBrgb(95, 54, 111)
HSLhsl(283, 35%, 32%)
HSVhsv(283, 51%, 44%)
CMYKcmyk(14.4%, 51.4%, 0%, 56.5%)
CIE-LABlab(29.96, 29.01, -25.79)
CIE-LCHlch(29.96, 38.82, 318.37°)
OKLaboklab(40.82% 0.0737 -0.0716)
OKLCHoklch(40.82% 0.103 315.8)
XYZxyz(8.9073, 6.2192, 15.7671)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F366F #466F36
analogous
#43366F #5F366F #6F3662
triadic
#5F366F #6F5F36 #366F5F
tetradic
#5F366F #6F4336 #466F36 #36626F
square
#5F366F #6F4336 #466F36 #36626F
split-complementary
#5F366F #626F36 #366F43
monochromatic
#190E1D #3C2246 #5F366F #824A98 #A169B6

Accessibility & contrast

On white

9.36
#5F366F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5F366F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F366F
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F366F#FFFFFF#000000##FFFFFF
##5F366F1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4471
Deuteranopia (green-blind)
#37486D
Tritanopia (blue-blind)
#5E3E4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f366f;
/* rgb */ color: rgb(95, 54, 111);
/* oklch */ color: oklch(40.8% 0.103 315.8);
Tailwind
colors: {
  custom: {
    50: '#8e6e98',
    500: '#5f366f',
    950: '#000000',
  },
}
SCSS
$custom: #5f366f;
$custom-light: #8e6e98;
$custom-dark: #000000;
JSON
{
  "hex": "#5f366f",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 111
  },
  "hsl": {
    "h": 283.158,
    "s": 34.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40821,
    "c": 0.10277,
    "h": 315.8
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

primary
#5F366F
secondary
#739F62
accent
#CB5D7C
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070E
muted
#7D7A7E

Preview Lab

Preview with #5F366F

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

Preview Lab → · Contrast checker → · Palette generator →

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