#5F1E9F#5F1E9F

#5F1E9F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.190 H 300.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5F1E9F
RGBrgb(95, 30, 159)
HSLhsl(270, 68%, 37%)
HSVhsv(270, 81%, 62%)
CMYKcmyk(40.3%, 81.1%, 0%, 37.6%)
CIE-LABlab(29.07, 52.61, -57.08)
CIE-LCHlch(29.07, 77.62, 312.67°)
OKLaboklab(41.26% 0.0973 -0.1632)
OKLCHoklch(41.26% 0.19 300.8)
XYZxyz(11.4400, 5.8646, 33.3234)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E9F #5E9F1E
analogous
#1F1E9F #5F1E9F #9F1E9E
triadic
#5F1E9F #9F5F1E #1E9F5F
tetradic
#5F1E9F #9F1F1E #5E9F1E #1E9E9F
square
#5F1E9F #9F1F1E #5E9F1E #1E9E9F
split-complementary
#5F1E9F #9E9F1E #1E9F1F
monochromatic
#210B38 #40146C #5F1E9F #7E28D2 #9C58DF

Accessibility & contrast

On white

9.66
#5F1E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5F1E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1E9F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E9F#FFFFFF#000000##FFFFFF
##5F1E9F1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1e9f;
/* rgb */ color: rgb(95, 30, 159);
/* oklch */ color: oklch(41.3% 0.190 300.8);
Tailwind
colors: {
  custom: {
    50: '#9363bc',
    500: '#5f1e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e9f;
$custom-light: #9363bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e9f",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 270.233,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41261,
    "c": 0.18997,
    "h": 300.8
  },
  "luminance": 0.05865
}

Semantic roles & 50–950 ramp

primary
#5F1E9F
secondary
#8CC356
accent
#EB3D93
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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