#5F1E9D#5F1E9D

#5F1E9D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.1% C 0.188 H 301.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5F1E9D
RGBrgb(95, 30, 157)
HSLhsl(271, 68%, 37%)
HSVhsv(271, 81%, 62%)
CMYKcmyk(39.5%, 80.9%, 0%, 38.4%)
CIE-LABlab(28.89, 52.13, -56.15)
CIE-LCHlch(28.89, 76.62, 312.87°)
OKLaboklab(41.08% 0.0979 -0.1604)
OKLCHoklch(41.08% 0.188 301.4)
XYZxyz(11.2679, 5.7957, 32.4168)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E9D #5C9D1E
analogous
#201E9D #5F1E9D #9D1E9C
triadic
#5F1E9D #9D5F1E #1E9D5F
tetradic
#5F1E9D #9D201E #5C9D1E #1E9C9D
square
#5F1E9D #9D201E #5C9D1E #1E9C9D
split-complementary
#5F1E9D #9C9D1E #1E9D20
monochromatic
#210A36 #40146A #5F1E9D #7E28D0 #9C57DF

Accessibility & contrast

On white

9.73
#5F1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1E9D
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E9D#FFFFFF#000000##FFFFFF
##5F1E9D1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#51415E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f1e9d;
/* rgb */ color: rgb(95, 30, 157);
/* oklch */ color: oklch(41.1% 0.188 301.4);
Tailwind
colors: {
  custom: {
    50: '#9363bb',
    500: '#5f1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e9d;
$custom-light: #9363bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e9d",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 270.709,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41084,
    "c": 0.18794,
    "h": 301.4
  },
  "luminance": 0.05796
}

Semantic roles & 50–950 ramp

primary
#5F1E9D
secondary
#8AC254
accent
#EB3D92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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