#5F1CA0#5F1CA0

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

Color values

HEX#5F1CA0
RGBrgb(95, 28, 160)
HSLhsl(270, 70%, 37%)
HSVhsv(270, 83%, 63%)
CMYKcmyk(40.6%, 82.5%, 0%, 37.3%)
CIE-LABlab(28.91, 53.58, -57.95)
CIE-LCHlch(28.91, 78.93, 312.76°)
OKLaboklab(41.18% 0.0985 -0.1657)
OKLCHoklch(41.18% 0.193 300.7)
XYZxyz(11.4782, 5.8014, 33.7659)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1CA0 #5DA01C
analogous
#1D1CA0 #5F1CA0 #A01C9F
triadic
#5F1CA0 #A05F1C #1CA05F
tetradic
#5F1CA0 #A01D1C #5DA01C #1C9FA0
square
#5F1CA0 #A01D1C #5DA01C #1C9FA0
split-complementary
#5F1CA0 #9FA01C #1CA01D
monochromatic
#210A38 #40136C #5F1CA0 #7E25D4 #9C55E1

Accessibility & contrast

On white

9.72
#5F1CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1CA0
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1CA0#FFFFFF#000000##FFFFFF
##5F1CA01.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#50425F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1ca0;
/* rgb */ color: rgb(95, 28, 160);
/* oklch */ color: oklch(41.2% 0.193 300.7);
Tailwind
colors: {
  custom: {
    50: '#9362bd',
    500: '#5f1ca0',
    950: '#000000',
  },
}
SCSS
$custom: #5f1ca0;
$custom-light: #9362bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1ca0",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 270.455,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41176,
    "c": 0.19275,
    "h": 300.7
  },
  "luminance": 0.05801
}

Semantic roles & 50–950 ramp

primary
#5F1CA0
secondary
#8BC453
accent
#ED3B93
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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