#5F1E8F#5F1E8F

#5F1E8F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.174 H 305.8°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#5F1E8F
RGBrgb(95, 30, 143)
HSLhsl(275, 65%, 34%)
HSVhsv(275, 79%, 56%)
CMYKcmyk(33.6%, 79%, 0%, 43.9%)
CIE-LABlab(27.70, 48.80, -49.50)
CIE-LCHlch(27.70, 69.51, 314.59°)
OKLaboklab(39.88% 0.1018 -0.1409)
OKLCHoklch(39.88% 0.174 305.8)
XYZxyz(10.1404, 5.3447, 26.4787)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E8F #4E8F1E
analogous
#261E8F #5F1E8F #8F1E87
triadic
#5F1E8F #8F5F1E #1E8F5F
tetradic
#5F1E8F #8F261E #4E8F1E #1E878F
square
#5F1E8F #8F261E #4E8F1E #1E878F
split-complementary
#5F1E8F #878F1E #1E8F26
monochromatic
#1C092A #3D135C #5F1E8F #8129C2 #9E4EDA

Accessibility & contrast

On white

10.15
#5F1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F1E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1E8F
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E8F#FFFFFF#000000##FFFFFF
##5F1E8F1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#563B56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1e8f;
/* rgb */ color: rgb(95, 30, 143);
/* oklch */ color: oklch(39.9% 0.174 305.8);
Tailwind
colors: {
  custom: {
    50: '#9162b1',
    500: '#5f1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e8f;
$custom-light: #9162b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e8f",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 274.513,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39878,
    "c": 0.1738,
    "h": 305.8
  },
  "luminance": 0.05345
}

Semantic roles & 50–950 ramp

primary
#5F1E8F
secondary
#7CBC4C
accent
#E84087
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5F1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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