#5F1B7D#5F1B7D

#5F1B7D is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.1% C 0.159 H 312.9°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#5F1B7D
RGBrgb(95, 27, 125)
HSLhsl(282, 64%, 30%)
HSVhsv(282, 78%, 49%)
CMYKcmyk(24%, 78.4%, 0%, 51%)
CIE-LABlab(25.86, 45.89, -41.22)
CIE-LCHlch(25.86, 61.69, 318.07°)
OKLaboklab(38.14% 0.1084 -0.1165)
OKLCHoklch(38.14% 0.159 312.9)
XYZxyz(8.8123, 4.6977, 19.8406)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B7D #397D1B
analogous
#2E1B7D #5F1B7D #7D1B6A
triadic
#5F1B7D #7D5F1B #1B7D5F
tetradic
#5F1B7D #7D2E1B #397D1B #1B6A7D
square
#5F1B7D #7D2E1B #397D1B #1B6A7D
split-complementary
#5F1B7D #6A7D1B #1B7D2E
monochromatic
#130519 #39104B #5F1B7D #8526AF #A73DD5

Accessibility & contrast

On white

10.83
#5F1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5F1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B7D
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B7D#FFFFFF#000000##FFFFFF
##5F1B7D1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#0F3F7B
Tritanopia (blue-blind)
#5C324B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1b7d;
/* rgb */ color: rgb(95, 27, 125);
/* oklch */ color: oklch(38.1% 0.159 312.9);
Tailwind
colors: {
  custom: {
    50: '#905fa3',
    500: '#5f1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b7d;
$custom-light: #905fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b7d",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 281.633,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38136,
    "c": 0.15917,
    "h": 312.9
  },
  "luminance": 0.04697
}

Semantic roles & 50–950 ramp

primary
#5F1B7D
secondary
#65B143
accent
#E74073
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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