#5F205E#5F205E

#5F205E is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.5% C 0.123 H 328.4°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5F205E
RGBrgb(95, 32, 94)
HSLhsl(301, 50%, 25%)
HSVhsv(301, 66%, 37%)
CMYKcmyk(0%, 66.3%, 1.1%, 62.7%)
CIE-LABlab(24.56, 37.28, -23.30)
CIE-LCHlch(24.56, 43.97, 327.99°)
OKLaboklab(36.55% 0.1043 -0.0643)
OKLCHoklch(36.55% 0.123 328.4)
XYZxyz(7.2561, 4.2746, 11.0304)
Luminance0.0427 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F205E #205F21
analogous
#40205F #5F205E #5F203F
triadic
#5F205E #5E5F20 #205E5F
tetradic
#5F205E #5F4020 #205F21 #203F5F
square
#5F205E #5F4020 #205F21 #203F5F
split-complementary
#5F205E #3F5F20 #205F40
monochromatic
#170817 #311131 #5F205E #8D2F8B #BB3FB9

Accessibility & contrast

On white

11.32
#5F205E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5F205E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F205E
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F205E#FFFFFF#000000##FFFFFF
##5F205E1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193560
Deuteranopia (green-blind)
#2F3D5C
Tritanopia (blue-blind)
#62283C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f205e;
/* rgb */ color: rgb(95, 32, 94);
/* oklch */ color: oklch(36.5% 0.123 328.4);
Tailwind
colors: {
  custom: {
    50: '#8f618c',
    500: '#5f205e',
    950: '#000000',
  },
}
SCSS
$custom: #5f205e;
$custom-light: #8f618c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f205e",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 94
  },
  "hsl": {
    "h": 300.952,
    "s": 49.606,
    "l": 24.902
  },
  "oklch": {
    "l": 0.36548,
    "c": 0.12253,
    "h": 328.4
  },
  "luminance": 0.04274
}

Semantic roles & 50–950 ramp

primary
#5F205E
secondary
#479349
accent
#D9514F
background
#F8F5F8
surface
#F0EAF0
border
#CBC6CB
text
#0D050C
muted
#7D797D

Preview Lab

Preview with #5F205E

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

Preview Lab → · Contrast checker → · Palette generator →

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