#5F1CA1#5F1CA1

#5F1CA1 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.3% C 0.194 H 300.4°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#5F1CA1
RGBrgb(95, 28, 161)
HSLhsl(270, 70%, 37%)
HSVhsv(270, 83%, 63%)
CMYKcmyk(41%, 82.6%, 0%, 36.9%)
CIE-LABlab(29.00, 53.82, -58.41)
CIE-LCHlch(29.00, 79.43, 312.66°)
OKLaboklab(41.27% 0.0981 -0.167)
OKLCHoklch(41.27% 0.194 300.4)
XYZxyz(11.5660, 5.8365, 34.2285)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1CA1 #5EA11C
analogous
#1D1CA1 #5F1CA1 #A11CA0
triadic
#5F1CA1 #A15F1C #1CA15F
tetradic
#5F1CA1 #A11D1C #5EA11C #1CA0A1
square
#5F1CA1 #A11D1C #5EA11C #1CA0A1
split-complementary
#5F1CA1 #A0A11C #1CA11D
monochromatic
#210A39 #40136D #5F1CA1 #7E25D5 #9C56E2

Accessibility & contrast

On white

9.69
#5F1CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1CA1
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1CA1#FFFFFF#000000##FFFFFF
##5F1CA11.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A5
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#4F4260
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1ca1;
/* rgb */ color: rgb(95, 28, 161);
/* oklch */ color: oklch(41.3% 0.194 300.4);
Tailwind
colors: {
  custom: {
    50: '#9362be',
    500: '#5f1ca1',
    950: '#000000',
  },
}
SCSS
$custom: #5f1ca1;
$custom-light: #9362be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1ca1",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 270.226,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41266,
    "c": 0.19375,
    "h": 300.4
  },
  "luminance": 0.05837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F1CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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