#5F1E7D#5F1E7D

#5F1E7D is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.4% C 0.156 H 312.6°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5F1E7D
RGBrgb(95, 30, 125)
HSLhsl(281, 61%, 30%)
HSVhsv(281, 76%, 49%)
CMYKcmyk(24%, 76%, 0%, 51%)
CIE-LABlab(26.28, 44.67, -40.53)
CIE-LCHlch(26.28, 60.32, 317.78°)
OKLaboklab(38.44% 0.1054 -0.1146)
OKLCHoklch(38.44% 0.156 312.6)
XYZxyz(8.8846, 4.8424, 19.8647)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E7D #3C7D1E
analogous
#301E7D #5F1E7D #7D1E6B
triadic
#5F1E7D #7D5F1E #1E7D5F
tetradic
#5F1E7D #7D301E #3C7D1E #1E6B7D
square
#5F1E7D #7D301E #3C7D1E #1E6B7D
split-complementary
#5F1E7D #6B7D1E #1E7D30
monochromatic
#14061A #39124C #5F1E7D #852AAE #A543D2

Accessibility & contrast

On white

10.67
#5F1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5F1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1E7D
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E7D#FFFFFF#000000##FFFFFF
##5F1E7D1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#13407B
Tritanopia (blue-blind)
#5C334C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f1e7d;
/* rgb */ color: rgb(95, 30, 125);
/* oklch */ color: oklch(38.4% 0.156 312.6);
Tailwind
colors: {
  custom: {
    50: '#9061a3',
    500: '#5f1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e7d;
$custom-light: #9061a3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e7d",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 281.053,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.38437,
    "c": 0.15568,
    "h": 312.6
  },
  "luminance": 0.04842
}

Semantic roles & 50–950 ramp

primary
#5F1E7D
secondary
#68B046
accent
#E44376
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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