#5F1B7F#5F1B7F

#5F1B7F is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.3% C 0.161 H 312.1°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5F1B7F
RGBrgb(95, 27, 127)
HSLhsl(281, 65%, 30%)
HSVhsv(281, 79%, 50%)
CMYKcmyk(25.2%, 78.7%, 0%, 50.2%)
CIE-LABlab(26.01, 46.33, -42.24)
CIE-LCHlch(26.01, 62.69, 317.64°)
OKLaboklab(38.29% 0.108 -0.1195)
OKLCHoklch(38.29% 0.161 312.1)
XYZxyz(8.9413, 4.7493, 20.5203)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B7F #3B7F1B
analogous
#2D1B7F #5F1B7F #7F1B6D
triadic
#5F1B7F #7F5F1B #1B7F5F
tetradic
#5F1B7F #7F2D1B #3B7F1B #1B6D7F
square
#5F1B7F #7F2D1B #3B7F1B #1B6D7F
split-complementary
#5F1B7F #6D7F1B #1B7F2D
monochromatic
#13061A #39104D #5F1B7F #8526B1 #A63ED6

Accessibility & contrast

On white

10.77
#5F1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B7F
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B7F#FFFFFF#000000##FFFFFF
##5F1B7F1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#0A3F7D
Tritanopia (blue-blind)
#5B334C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1b7f;
/* rgb */ color: rgb(95, 27, 127);
/* oklch */ color: oklch(38.3% 0.161 312.1);
Tailwind
colors: {
  custom: {
    50: '#9060a5',
    500: '#5f1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b7f;
$custom-light: #9060a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b7f",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 280.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38292,
    "c": 0.16112,
    "h": 312.1
  },
  "luminance": 0.04749
}

Semantic roles & 50–950 ramp

primary
#5F1B7F
secondary
#67B343
accent
#E84076
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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