#5F3EAD#5F3EAD

#5F3EAD is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.4% C 0.168 H 292.2°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5F3EAD
RGBrgb(95, 62, 173)
HSLhsl(258, 47%, 46%)
HSVhsv(258, 64%, 68%)
CMYKcmyk(45.1%, 64.2%, 0%, 32.2%)
CIE-LABlab(35.78, 40.76, -54.56)
CIE-LCHlch(35.78, 68.11, 306.76°)
OKLaboklab(46.39% 0.0638 -0.1559)
OKLCHoklch(46.39% 0.168 292.2)
XYZxyz(13.9827, 8.8948, 40.5072)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EAD #8CAD3E
analogous
#3E54AD #5F3EAD #963EAD
triadic
#5F3EAD #AD5F3E #3EAD5F
tetradic
#5F3EAD #AD3E54 #8CAD3E #3EAD96
square
#5F3EAD #AD3E54 #8CAD3E #3EAD96
split-complementary
#5F3EAD #AD963E #54AD3E
monochromatic
#2E1E53 #462E80 #5F3EAD #8062C7 #A48FD7

Accessibility & contrast

On white

7.56
#5F3EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F3EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EAD
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EAD#FFFFFF#000000##FFFFFF
##5F3EAD1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B0
Deuteranopia (green-blind)
#0052AB
Tritanopia (blue-blind)
#485870
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3ead;
/* rgb */ color: rgb(95, 62, 173);
/* oklch */ color: oklch(46.4% 0.168 292.2);
Tailwind
colors: {
  custom: {
    50: '#9375c6',
    500: '#5f3ead',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ead;
$custom-light: #9375c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ead",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 173
  },
  "hsl": {
    "h": 257.838,
    "s": 47.234,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46388,
    "c": 0.16847,
    "h": 292.2
  },
  "luminance": 0.08895
}

Semantic roles & 50–950 ramp

primary
#5F3EAD
secondary
#B0C285
accent
#D751AF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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