#5F1C8E#5F1C8E

#5F1C8E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.175 H 306.4°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#5F1C8E
RGBrgb(95, 28, 142)
HSLhsl(275, 67%, 33%)
HSVhsv(275, 80%, 56%)
CMYKcmyk(33.1%, 80.3%, 0%, 44.3%)
CIE-LABlab(27.34, 49.35, -49.45)
CIE-LCHlch(27.34, 69.86, 314.94°)
OKLaboklab(39.61% 0.1037 -0.1407)
OKLCHoklch(39.61% 0.175 306.4)
XYZxyz(10.0160, 5.2165, 26.0652)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1C8E #4B8E1C
analogous
#261C8E #5F1C8E #8E1C84
triadic
#5F1C8E #8E5F1C #1C8E5F
tetradic
#5F1C8E #8E261C #4B8E1C #1C848E
square
#5F1C8E #8E261C #4B8E1C #1C848E
split-complementary
#5F1C8E #848E1C #1C8E26
monochromatic
#1B0828 #3D125B #5F1C8E #8126C1 #9F49DB

Accessibility & contrast

On white

10.28
#5F1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5F1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1C8E
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1C8E#FFFFFF#000000##FFFFFF
##5F1C8E1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#573A55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1c8e;
/* rgb */ color: rgb(95, 28, 142);
/* oklch */ color: oklch(39.6% 0.175 306.4);
Tailwind
colors: {
  custom: {
    50: '#9161b0',
    500: '#5f1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #5f1c8e;
$custom-light: #9161b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1c8e",
  "rgb": {
    "r": 95,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 275.263,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39605,
    "c": 0.17485,
    "h": 306.4
  },
  "luminance": 0.05216
}

Semantic roles & 50–950 ramp

primary
#5F1C8E
secondary
#79BD49
accent
#EA3E85
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5F1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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