#5F2EB1#5F2EB1

#5F2EB1 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.193 H 294.2°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#5F2EB1
RGBrgb(95, 46, 177)
HSLhsl(262, 59%, 44%)
HSVhsv(262, 74%, 69%)
CMYKcmyk(46.3%, 74%, 0%, 30.6%)
CIE-LABlab(33.05, 50.28, -61.40)
CIE-LCHlch(33.05, 79.36, 309.32°)
OKLaboklab(44.54% 0.0791 -0.1759)
OKLCHoklch(44.54% 0.193 294.2)
XYZxyz(13.6300, 7.5608, 42.3277)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EB1 #80B12E
analogous
#2E3EB1 #5F2EB1 #A02EB1
triadic
#5F2EB1 #B15F2E #2EB15F
tetradic
#5F2EB1 #B12E3E #80B12E #2EB1A0
square
#5F2EB1 #B12E3E #80B12E #2EB1A0
split-complementary
#5F2EB1 #B1A02E #3EB12E
monochromatic
#2B1550 #452180 #5F2EB1 #7D4CD0 #A17CDD

Accessibility & contrast

On white

8.36
#5F2EB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5F2EB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EB1
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EB1#FFFFFF#000000##FFFFFF
##5F2EB11.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#004BAE
Tritanopia (blue-blind)
#47516D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2eb1;
/* rgb */ color: rgb(95, 46, 177);
/* oklch */ color: oklch(44.5% 0.193 294.2);
Tailwind
colors: {
  custom: {
    50: '#946cc9',
    500: '#5f2eb1',
    950: '#000000',
  },
}
SCSS
$custom: #5f2eb1;
$custom-light: #946cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2eb1",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 262.443,
    "s": 58.744,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44536,
    "c": 0.1929,
    "h": 294.2
  },
  "luminance": 0.07561
}

Semantic roles & 50–950 ramp

primary
#5F2EB1
secondary
#A8C675
accent
#E246A8
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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