#5F1E95#5F1E95

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

Color values

HEX#5F1E95
RGBrgb(95, 30, 149)
HSLhsl(273, 66%, 35%)
HSVhsv(273, 80%, 58%)
CMYKcmyk(36.2%, 79.9%, 0%, 41.6%)
CIE-LABlab(28.20, 50.22, -52.38)
CIE-LCHlch(28.20, 72.56, 313.79°)
OKLaboklab(40.39% 0.1002 -0.1494)
OKLCHoklch(40.39% 0.18 303.9)
XYZxyz(10.6071, 5.5314, 28.9368)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E95 #54951E
analogous
#241E95 #5F1E95 #951E8F
triadic
#5F1E95 #955F1E #1E955F
tetradic
#5F1E95 #95241E #54951E #1E8F95
square
#5F1E95 #95241E #54951E #1E8F95
split-complementary
#5F1E95 #8F951E #1E9524
monochromatic
#1E092F #3F1462 #5F1E95 #7F28C8 #9D51DC

Accessibility & contrast

On white

9.97
#5F1E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5F1E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1E95
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E95#FFFFFF#000000##FFFFFF
##5F1E951.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004198
Deuteranopia (green-blind)
#004293
Tritanopia (blue-blind)
#543E59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f1e95;
/* rgb */ color: rgb(95, 30, 149);
/* oklch */ color: oklch(40.4% 0.180 303.9);
Tailwind
colors: {
  custom: {
    50: '#9262b5',
    500: '#5f1e95',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e95;
$custom-light: #9262b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e95",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 272.773,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40386,
    "c": 0.17987,
    "h": 303.9
  },
  "luminance": 0.05531
}

Semantic roles & 50–950 ramp

primary
#5F1E95
secondary
#82BF50
accent
#E93E8C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0511
muted
#7E7A80

Preview Lab

Preview with #5F1E95

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

Preview Lab → · Contrast checker → · Palette generator →

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