#5F1E9A#5F1E9A

#5F1E9A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.185 H 302.3°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#5F1E9A
RGBrgb(95, 30, 154)
HSLhsl(271, 67%, 36%)
HSVhsv(271, 81%, 60%)
CMYKcmyk(38.3%, 80.5%, 0%, 39.6%)
CIE-LABlab(28.63, 51.41, -54.75)
CIE-LCHlch(28.63, 75.10, 313.20°)
OKLaboklab(40.82% 0.0988 -0.1563)
OKLCHoklch(40.82% 0.185 302.3)
XYZxyz(11.0149, 5.6945, 31.0844)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E9A #599A1E
analogous
#211E9A #5F1E9A #9A1E97
triadic
#5F1E9A #9A5F1E #1E9A5F
tetradic
#5F1E9A #9A211E #599A1E #1E979A
square
#5F1E9A #9A211E #599A1E #1E979A
split-complementary
#5F1E9A #979A1E #1E9A21
monochromatic
#200A34 #3F1467 #5F1E9A #7F28CD #9D55DE

Accessibility & contrast

On white

9.82
#5F1E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1E9A
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E9A#FFFFFF#000000##FFFFFF
##5F1E9A1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#52405C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f1e9a;
/* rgb */ color: rgb(95, 30, 154);
/* oklch */ color: oklch(40.8% 0.185 302.3);
Tailwind
colors: {
  custom: {
    50: '#9262b9',
    500: '#5f1e9a',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e9a;
$custom-light: #9262b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e9a",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 271.452,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40819,
    "c": 0.18492,
    "h": 302.3
  },
  "luminance": 0.05695
}

Semantic roles & 50–950 ramp

primary
#5F1E9A
secondary
#87C153
accent
#EA3E90
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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