#5F2EA1#5F2EA1

#5F2EA1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.175 H 298.1°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5F2EA1
RGBrgb(95, 46, 161)
HSLhsl(266, 56%, 41%)
HSVhsv(266, 71%, 63%)
CMYKcmyk(41%, 71.4%, 0%, 36.9%)
CIE-LABlab(31.72, 46.05, -53.97)
CIE-LCHlch(31.72, 70.95, 310.47°)
OKLaboklab(43.18% 0.0825 -0.1541)
OKLCHoklch(43.18% 0.175 298.1)
XYZxyz(12.1277, 6.9599, 34.4157)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EA1 #70A12E
analogous
#2E36A1 #5F2EA1 #982EA1
triadic
#5F2EA1 #A15F2E #2EA15F
tetradic
#5F2EA1 #A12E36 #70A12E #2EA198
square
#5F2EA1 #A12E36 #70A12E #2EA198
split-complementary
#5F2EA1 #A1982E #36A12E
monochromatic
#271342 #432071 #5F2EA1 #7C43C9 #9D73D7

Accessibility & contrast

On white

8.78
#5F2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5F2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EA1
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EA1#FFFFFF#000000##FFFFFF
##5F2EA11.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4F4A64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2ea1;
/* rgb */ color: rgb(95, 46, 161);
/* oklch */ color: oklch(43.2% 0.175 298.1);
Tailwind
colors: {
  custom: {
    50: '#926bbe',
    500: '#5f2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ea1;
$custom-light: #926bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ea1",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 265.565,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43176,
    "c": 0.17482,
    "h": 298.1
  },
  "luminance": 0.0696
}

Semantic roles & 50–950 ramp

primary
#5F2EA1
secondary
#9BBE6C
accent
#DF499F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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