#5F1EA7#5F1EA7

#5F1EA7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.198 H 298.6°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#5F1EA7
RGBrgb(95, 30, 167)
HSLhsl(268, 70%, 39%)
HSVhsv(268, 82%, 65%)
CMYKcmyk(43.1%, 82%, 0%, 34.5%)
CIE-LABlab(29.79, 54.55, -60.74)
CIE-LCHlch(29.79, 81.64, 311.92°)
OKLaboklab(41.98% 0.0948 -0.1739)
OKLCHoklch(41.98% 0.198 298.6)
XYZxyz(12.1568, 6.1513, 37.0985)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1EA7 #66A71E
analogous
#1E22A7 #5F1EA7 #A31EA7
triadic
#5F1EA7 #A75F1E #1EA75F
tetradic
#5F1EA7 #A71E22 #66A71E #1EA7A3
square
#5F1EA7 #A71E22 #66A71E #1EA7A3
split-complementary
#5F1EA7 #A7A31E #22A71E
monochromatic
#240B3F #411573 #5F1EA7 #7D2AD9 #9C5DE2

Accessibility & contrast

On white

9.42
#5F1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5F1EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1EA7
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1EA7#FFFFFF#000000##FFFFFF
##5F1EA71.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AB
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#4D4564
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f1ea7;
/* rgb */ color: rgb(95, 30, 167);
/* oklch */ color: oklch(42.0% 0.198 298.6);
Tailwind
colors: {
  custom: {
    50: '#9463c2',
    500: '#5f1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #5f1ea7;
$custom-light: #9463c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1ea7",
  "rgb": {
    "r": 95,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 268.467,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41984,
    "c": 0.19804,
    "h": 298.6
  },
  "luminance": 0.06151
}

Semantic roles & 50–950 ramp

primary
#5F1EA7
secondary
#93C65B
accent
#EC3B98
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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