#5E1FA0#5E1FA0

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

Color values

HEX#5E1FA0
RGBrgb(94, 31, 160)
HSLhsl(269, 68%, 37%)
HSVhsv(269, 81%, 63%)
CMYKcmyk(41.3%, 80.6%, 0%, 37.3%)
CIE-LABlab(29.15, 52.31, -57.55)
CIE-LCHlch(29.15, 77.78, 312.27°)
OKLaboklab(41.32% 0.0947 -0.1646)
OKLCHoklch(41.32% 0.19 299.9)
XYZxyz(11.4496, 5.8976, 33.7860)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1FA0 #61A01F
analogous
#1F21A0 #5E1FA0 #9E1FA0
triadic
#5E1FA0 #A05E1F #1FA05E
tetradic
#5E1FA0 #A01F21 #61A01F #1FA09E
square
#5E1FA0 #A01F21 #61A01F #1FA09E
split-complementary
#5E1FA0 #A09E1F #21A01F
monochromatic
#220B39 #40156D #5E1FA0 #7C29D3 #9B5ADF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E1FA0#FFFFFF#000000##FFFFFF
##5E1FA01.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)
#0044A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#4E4360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e1fa0;
/* rgb */ color: rgb(94, 31, 160);
/* oklch */ color: oklch(41.3% 0.190 299.9);
Tailwind
colors: {
  custom: {
    50: '#9263bd',
    500: '#5e1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #5e1fa0;
$custom-light: #9263bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1fa0",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 269.302,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41318,
    "c": 0.1899,
    "h": 299.9
  },
  "luminance": 0.05898
}

Semantic roles & 50–950 ramp

primary
#5E1FA0
secondary
#8FC358
accent
#EA3D96
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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