#5F1D9F#5F1D9F

#5F1D9F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.2% C 0.191 H 300.9°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5F1D9F
RGBrgb(95, 29, 159)
HSLhsl(270, 69%, 37%)
HSVhsv(270, 82%, 62%)
CMYKcmyk(40.3%, 81.8%, 0%, 37.6%)
CIE-LABlab(28.94, 52.98, -57.29)
CIE-LCHlch(28.94, 78.03, 312.76°)
OKLaboklab(41.17% 0.0981 -0.1638)
OKLCHoklch(41.17% 0.191 300.9)
XYZxyz(11.4151, 5.8147, 33.3151)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D9F #5D9F1D
analogous
#1E1D9F #5F1D9F #9F1D9E
triadic
#5F1D9F #9F5F1D #1D9F5F
tetradic
#5F1D9F #9F1E1D #5D9F1D #1D9E9F
square
#5F1D9F #9F1E1D #5D9F1D #1D9E9F
split-complementary
#5F1D9F #9E9F1D #1D9F1E
monochromatic
#210A37 #40146B #5F1D9F #7E26D3 #9C56E0

Accessibility & contrast

On white

9.71
#5F1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5F1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D9F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D9F#FFFFFF#000000##FFFFFF
##5F1D9F1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#50415F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1d9f;
/* rgb */ color: rgb(95, 29, 159);
/* oklch */ color: oklch(41.2% 0.191 300.9);
Tailwind
colors: {
  custom: {
    50: '#9362bc',
    500: '#5f1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d9f;
$custom-light: #9362bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d9f",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 270.462,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41172,
    "c": 0.19087,
    "h": 300.9
  },
  "luminance": 0.05815
}

Semantic roles & 50–950 ramp

primary
#5F1D9F
secondary
#8BC454
accent
#EC3C93
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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