#5F1E8B#5F1E8B

#5F1E8B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.170 H 307.2°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5F1E8B
RGBrgb(95, 30, 139)
HSLhsl(276, 64%, 33%)
HSVhsv(276, 78%, 55%)
CMYKcmyk(31.7%, 78.4%, 0%, 45.5%)
CIE-LABlab(27.37, 47.87, -47.55)
CIE-LCHlch(27.37, 67.47, 315.19°)
OKLaboklab(39.55% 0.1027 -0.1352)
OKLCHoklch(39.55% 0.17 307.2)
XYZxyz(9.8428, 5.2256, 24.9112)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1E8B #4A8B1E
analogous
#291E8B #5F1E8B #8B1E80
triadic
#5F1E8B #8B5F1E #1E8B5F
tetradic
#5F1E8B #8B291E #4A8B1E #1E808B
square
#5F1E8B #8B291E #4A8B1E #1E808B
split-complementary
#5F1E8B #808B1E #1E8B29
monochromatic
#1A0826 #3D1359 #5F1E8B #8129BD #9F4BD8

Accessibility & contrast

On white

10.27
#5F1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1E8B
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1E8B#FFFFFF#000000##FFFFFF
##5F1E8B1.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#583954
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f1e8b;
/* rgb */ color: rgb(95, 30, 139);
/* oklch */ color: oklch(39.5% 0.170 307.2);
Tailwind
colors: {
  custom: {
    50: '#9162ae',
    500: '#5f1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #5f1e8b;
$custom-light: #9162ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1e8b",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 275.78,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39546,
    "c": 0.16977,
    "h": 307.2
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#5F1E8B
secondary
#78BB4A
accent
#E74084
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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