#5F1EA0#5F1EA0

#5F1EA0 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.191 H 300.5°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#5F1EA0
RGBrgb(95, 30, 160)
HSLhsl(270, 68%, 37%)
HSVhsv(270, 81%, 63%)
CMYKcmyk(40.6%, 81.3%, 0%, 37.3%)
CIE-LABlab(29.16, 52.85, -57.54)
CIE-LCHlch(29.16, 78.13, 312.57°)
OKLaboklab(41.35% 0.097 -0.1645)
OKLCHoklch(41.35% 0.191 300.5)
XYZxyz(11.5272, 5.8994, 33.7823)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1EA0 #5FA01E
analogous
#1E1EA0 #5F1EA0 #A01EA0
triadic
#5F1EA0 #A05F1E #1EA05F
tetradic
#5F1EA0 #A01E1E #5FA01E #1EA0A0
square
#5F1EA0 #A01E1E #5FA01E #1EA0A0
split-complementary
#5F1EA0 #A0A01E #1EA01E
monochromatic
#220B39 #40146C #5F1EA0 #7E28D4 #9C59E0

Accessibility & contrast

On white

9.63
#5F1EA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5F1EA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1EA0
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1EA0#FFFFFF#000000##FFFFFF
##5F1EA01.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#504260
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f1ea0;
/* rgb */ color: rgb(95, 30, 160);
/* oklch */ color: oklch(41.3% 0.191 300.5);
Tailwind
colors: {
  custom: {
    50: '#9363bd',
    500: '#5f1ea0',
    950: '#000000',
  },
}
SCSS
$custom: #5f1ea0;
$custom-light: #9363bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1ea0",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 160
  },
  "hsl": {
    "h": 270,
    "s": 68.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4135,
    "c": 0.19097,
    "h": 300.5
  },
  "luminance": 0.059
}

Semantic roles & 50–950 ramp

primary
#5F1EA0
secondary
#8DC456
accent
#EB3D94
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1EA0

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

Preview Lab → · Contrast checker → · Palette generator →

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