#5F1EA6#5F1EA6

#5F1EA6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.9% C 0.197 H 298.9°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5F1EA6
RGBrgb(95, 30, 166)
HSLhsl(269, 69%, 38%)
HSVhsv(269, 82%, 65%)
CMYKcmyk(42.8%, 81.9%, 0%, 34.9%)
CIE-LABlab(29.70, 54.30, -60.29)
CIE-LCHlch(29.70, 81.14, 312.01°)
OKLaboklab(41.89% 0.0951 -0.1726)
OKLCHoklch(41.89% 0.197 298.9)
XYZxyz(12.0648, 6.1144, 36.6136)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1EA6 #65A61E
analogous
#1E21A6 #5F1EA6 #A31EA6
triadic
#5F1EA6 #A65F1E #1EA65F
tetradic
#5F1EA6 #A61E21 #65A61E #1EA6A3
square
#5F1EA6 #A61E21 #65A61E #1EA6A3
split-complementary
#5F1EA6 #A6A31E #21A61E
monochromatic
#240B3E #411572 #5F1EA6 #7D29D8 #9C5DE2

Accessibility & contrast

On white

9.45
#5F1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5F1EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1EA6
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1EA6#FFFFFF#000000##FFFFFF
##5F1EA61.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#4D4563
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f1ea6;
/* rgb */ color: rgb(95, 30, 166);
/* oklch */ color: oklch(41.9% 0.197 298.9);
Tailwind
colors: {
  custom: {
    50: '#9463c1',
    500: '#5f1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #5f1ea6;
$custom-light: #9463c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1ea6",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 268.676,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41893,
    "c": 0.19703,
    "h": 298.9
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#5F1EA6
secondary
#92C65A
accent
#EC3C98
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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