#5F3ACE#5F3ACE

#5F3ACE is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.6% C 0.213 H 287.0°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5F3ACE
RGBrgb(95, 58, 206)
HSLhsl(255, 60%, 52%)
HSVhsv(255, 72%, 81%)
CMYKcmyk(53.9%, 71.8%, 0%, 19.2%)
CIE-LABlab(37.69, 52.33, -70.83)
CIE-LCHlch(37.69, 88.07, 306.45°)
OKLaboklab(48.59% 0.0623 -0.2037)
OKLCHoklch(48.59% 0.213 287)
XYZxyz(17.3696, 9.9143, 59.3790)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ACE #A9CE3A
analogous
#3A5FCE #5F3ACE #A93ACE
triadic
#5F3ACE #CE5F3A #3ACE5F
tetradic
#5F3ACE #CE3A5F #A9CE3A #3ACEA9
square
#5F3ACE #CE3A5F #A9CE3A #3ACEA9
split-complementary
#5F3ACE #CEA93A #5FCE3A
monochromatic
#321C71 #4728A2 #5F3ACE #876BDA #AF9CE6

Accessibility & contrast

On white

7.04
#5F3ACE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5F3ACE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3ACE
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ACE#FFFFFF#000000##FFFFFF
##5F3ACE1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#0055CB
Tritanopia (blue-blind)
#306280
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f3ace;
/* rgb */ color: rgb(95, 58, 206);
/* oklch */ color: oklch(48.6% 0.213 287.0);
Tailwind
colors: {
  custom: {
    50: '#9774de',
    500: '#5f3ace',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ace;
$custom-light: #9774de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ace",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 206
  },
  "hsl": {
    "h": 255,
    "s": 60.163,
    "l": 51.765
  },
  "oklch": {
    "l": 0.4859,
    "c": 0.21303,
    "h": 287
  },
  "luminance": 0.09915
}

Semantic roles & 50–950 ramp

primary
#5F3ACE
secondary
#C2D291
accent
#E344BC
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F3ACE

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

Preview Lab → · Contrast checker → · Palette generator →

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