#5F1EA1#5F1EA1

#5F1EA1 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.4% C 0.192 H 300.2°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5F1EA1
RGBrgb(95, 30, 161)
HSLhsl(270, 69%, 37%)
HSVhsv(270, 81%, 63%)
CMYKcmyk(41%, 81.4%, 0%, 36.9%)
CIE-LABlab(29.25, 53.09, -58.00)
CIE-LCHlch(29.25, 78.63, 312.47°)
OKLaboklab(41.44% 0.0967 -0.1659)
OKLCHoklch(41.44% 0.192 300.2)
XYZxyz(11.6150, 5.9345, 34.2448)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1EA1 #60A11E
analogous
#1E1FA1 #5F1EA1 #A01EA1
triadic
#5F1EA1 #A15F1E #1EA15F
tetradic
#5F1EA1 #A11E1F #60A11E #1EA1A0
square
#5F1EA1 #A11E1F #60A11E #1EA1A0
split-complementary
#5F1EA1 #A1A01E #1FA11E
monochromatic
#220B3A #41146D #5F1EA1 #7D28D5 #9C59E0

Accessibility & contrast

On white

9.60
#5F1EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5F1EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1EA1
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1EA1#FFFFFF#000000##FFFFFF
##5F1EA11.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#4F4360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f1ea1;
/* rgb */ color: rgb(95, 30, 161);
/* oklch */ color: oklch(41.4% 0.192 300.2);
Tailwind
colors: {
  custom: {
    50: '#9363be',
    500: '#5f1ea1',
    950: '#000000',
  },
}
SCSS
$custom: #5f1ea1;
$custom-light: #9363be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1ea1",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 269.771,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.4144,
    "c": 0.19199,
    "h": 300.2
  },
  "luminance": 0.05935
}

Semantic roles & 50–950 ramp

primary
#5F1EA1
secondary
#8EC457
accent
#EB3C95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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