#5F1C97#5F1C97

#5F1C97 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.184 H 303.4°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#5F1C97
RGBrgb(95, 28, 151)
HSLhsl(273, 69%, 35%)
HSVhsv(273, 81%, 59%)
CMYKcmyk(37.1%, 81.5%, 0%, 40.8%)
CIE-LABlab(28.11, 51.45, -53.76)
CIE-LCHlch(28.11, 74.41, 313.74°)
OKLaboklab(40.38% 0.1013 -0.1534)
OKLCHoklch(40.38% 0.184 303.4)
XYZxyz(10.7192, 5.4978, 29.7686)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C97 #54971C
analogous
#221C97 #5F1C97 #971C91
triadic
#5F1C97 #975F1C #1C975F
tetradic
#5F1C97 #97221C #54971C #1C9197
square
#5F1C97 #97221C #54971C #1C9197
split-complementary
#5F1C97 #91971C #1C9722
monochromatic
#1E0930 #3F1263 #5F1C97 #7F26CB #9D4FDE

Accessibility & contrast

On white

10.00
#5F1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5F1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1C97
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C97#FFFFFF#000000##FFFFFF
##5F1C971.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#533E5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f1c97;
/* rgb */ color: rgb(95, 28, 151);
/* oklch */ color: oklch(40.4% 0.184 303.4);
Tailwind
colors: {
  custom: {
    50: '#9261b7',
    500: '#5f1c97',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c97;
$custom-light: #9261b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c97",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 272.683,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40377,
    "c": 0.1838,
    "h": 303.4
  },
  "luminance": 0.05498
}

Semantic roles & 50–950 ramp

primary
#5F1C97
secondary
#82C14E
accent
#EC3C8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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