#5F1D9C#5F1D9C

#5F1D9C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.188 H 301.8°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5F1D9C
RGBrgb(95, 29, 156)
HSLhsl(271, 69%, 36%)
HSVhsv(271, 81%, 61%)
CMYKcmyk(39.1%, 81.4%, 0%, 38.8%)
CIE-LABlab(28.67, 52.26, -55.89)
CIE-LCHlch(28.67, 76.52, 313.08°)
OKLaboklab(40.91% 0.099 -0.1597)
OKLCHoklch(40.91% 0.188 301.8)
XYZxyz(11.1580, 5.7119, 31.9607)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D9C #5A9C1D
analogous
#1F1D9C #5F1D9C #9C1D9A
triadic
#5F1D9C #9C5F1D #1D9C5F
tetradic
#5F1D9C #9C1F1D #5A9C1D #1D9A9C
square
#5F1D9C #9C1F1D #5A9C1D #1D9A9C
split-complementary
#5F1D9C #9A9C1D #1D9C1F
monochromatic
#200A35 #401368 #5F1D9C #7E27D0 #9C54DF

Accessibility & contrast

On white

9.80
#5F1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5F1D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D9C
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D9C#FFFFFF#000000##FFFFFF
##5F1D9C1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#51405D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1d9c;
/* rgb */ color: rgb(95, 29, 156);
/* oklch */ color: oklch(40.9% 0.188 301.8);
Tailwind
colors: {
  custom: {
    50: '#9362ba',
    500: '#5f1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d9c;
$custom-light: #9362ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d9c",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 271.181,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40905,
    "c": 0.18787,
    "h": 301.8
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#5F1D9C
secondary
#88C252
accent
#EB3C90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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