#5F3ACD#5F3ACD

#5F3ACD is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.5% C 0.212 H 287.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5F3ACD
RGBrgb(95, 58, 205)
HSLhsl(255, 60%, 52%)
HSVhsv(255, 72%, 80%)
CMYKcmyk(53.7%, 71.7%, 0%, 19.6%)
CIE-LABlab(37.60, 52.04, -70.40)
CIE-LCHlch(37.60, 87.55, 306.47°)
OKLaboklab(48.5% 0.0626 -0.2024)
OKLCHoklch(48.5% 0.212 287.2)
XYZxyz(17.2485, 9.8659, 58.7412)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ACD #A8CD3A
analogous
#3A5FCD #5F3ACD #A93ACD
triadic
#5F3ACD #CD5F3A #3ACD5F
tetradic
#5F3ACD #CD3A5F #A8CD3A #3ACDA9
square
#5F3ACD #CD3A5F #A8CD3A #3ACDA9
split-complementary
#5F3ACD #CDA93A #5FCD3A
monochromatic
#321C70 #4729A1 #5F3ACD #876BD9 #AE9CE6

Accessibility & contrast

On white

7.06
#5F3ACD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5F3ACD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3ACD
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ACD#FFFFFF#000000##FFFFFF
##5F3ACD1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#316180
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3acd;
/* rgb */ color: rgb(95, 58, 205);
/* oklch */ color: oklch(48.5% 0.212 287.2);
Tailwind
colors: {
  custom: {
    50: '#9774dd',
    500: '#5f3acd',
    950: '#000000',
  },
}
SCSS
$custom: #5f3acd;
$custom-light: #9774dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3acd",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 205
  },
  "hsl": {
    "h": 255.102,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48502,
    "c": 0.21187,
    "h": 287.2
  },
  "luminance": 0.09867
}

Semantic roles & 50–950 ramp

primary
#5F3ACD
secondary
#C1D291
accent
#E345BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3ACD

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

Preview Lab → · Contrast checker → · Palette generator →

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