#5F3EAC#5F3EAC

#5F3EAC is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.3% C 0.167 H 292.4°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5F3EAC
RGBrgb(95, 62, 172)
HSLhsl(258, 47%, 46%)
HSVhsv(258, 64%, 67%)
CMYKcmyk(44.8%, 64%, 0%, 32.5%)
CIE-LABlab(35.71, 40.47, -54.09)
CIE-LCHlch(35.71, 67.55, 306.80°)
OKLaboklab(46.31% 0.0639 -0.1545)
OKLCHoklch(46.31% 0.167 292.4)
XYZxyz(13.8863, 8.8563, 39.9995)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3EAC #8BAC3E
analogous
#3E54AC #5F3EAC #963EAC
triadic
#5F3EAC #AC5F3E #3EAC5F
tetradic
#5F3EAC #AC3E54 #8BAC3E #3EAC96
square
#5F3EAC #AC3E54 #8BAC3E #3EAC96
split-complementary
#5F3EAC #AC963E #54AC3E
monochromatic
#2D1E52 #462E7F #5F3EAC #7F61C6 #A48ED6

Accessibility & contrast

On white

7.58
#5F3EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5F3EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3EAC
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3EAC#FFFFFF#000000##FFFFFF
##5F3EAC1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#49586F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3eac;
/* rgb */ color: rgb(95, 62, 172);
/* oklch */ color: oklch(46.3% 0.167 292.4);
Tailwind
colors: {
  custom: {
    50: '#9275c5',
    500: '#5f3eac',
    950: '#000000',
  },
}
SCSS
$custom: #5f3eac;
$custom-light: #9275c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3eac",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 172
  },
  "hsl": {
    "h": 258,
    "s": 47.009,
    "l": 45.882
  },
  "oklch": {
    "l": 0.4631,
    "c": 0.16721,
    "h": 292.4
  },
  "luminance": 0.08857
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F3EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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