#5F366A#5F366A

#5F366A is a dark, moderate purple. Relative luminance 0.061; OKLCH L 40.5% C 0.097 H 318.9°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5F366A
RGBrgb(95, 54, 106)
HSLhsl(287, 33%, 31%)
HSVhsv(287, 49%, 42%)
CMYKcmyk(10.4%, 49.1%, 0%, 58.4%)
CIE-LABlab(29.69, 27.86, -23.02)
CIE-LCHlch(29.69, 36.14, 320.44°)
OKLaboklab(40.54% 0.0729 -0.0636)
OKLCHoklch(40.54% 0.097 318.9)
XYZxyz(8.6397, 6.1121, 14.3575)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F366A #416A36
analogous
#45366A #5F366A #6A365B
triadic
#5F366A #6A5F36 #366A5F
tetradic
#5F366A #6A4536 #416A36 #365B6A
square
#5F366A #6A4536 #416A36 #365B6A
split-complementary
#5F366A #5B6A36 #366A45
monochromatic
#160D19 #3B2141 #5F366A #834B93 #A368B2

Accessibility & contrast

On white

9.45
#5F366A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5F366A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F366A
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F366A#FFFFFF#000000##FFFFFF
##5F366A1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f366a;
/* rgb */ color: rgb(95, 54, 106);
/* oklch */ color: oklch(40.5% 0.097 318.9);
Tailwind
colors: {
  custom: {
    50: '#8e6e95',
    500: '#5f366a',
    950: '#000000',
  },
}
SCSS
$custom: #5f366a;
$custom-light: #8e6e95;
$custom-dark: #000000;
JSON
{
  "hex": "#5f366a",
  "rgb": {
    "r": 95,
    "g": 54,
    "b": 106
  },
  "hsl": {
    "h": 287.308,
    "s": 32.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40537,
    "c": 0.09676,
    "h": 318.9
  },
  "luminance": 0.06112
}

Semantic roles & 50–950 ramp

primary
#5F366A
secondary
#6D9B61
accent
#C95F75
background
#F8F6F9
surface
#F0ECF1
border
#CBC7CB
text
#0C070D
muted
#7D7A7E

Preview Lab

Preview with #5F366A

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

Preview Lab → · Contrast checker → · Palette generator →

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