#5F3ACC#5F3ACC

#5F3ACC is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.4% C 0.211 H 287.3°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5F3ACC
RGBrgb(95, 58, 204)
HSLhsl(255, 59%, 51%)
HSVhsv(255, 72%, 80%)
CMYKcmyk(53.4%, 71.6%, 0%, 20%)
CIE-LABlab(37.51, 51.76, -69.96)
CIE-LCHlch(37.51, 87.03, 306.49°)
OKLaboklab(48.41% 0.0628 -0.2011)
OKLCHoklch(48.41% 0.211 287.3)
XYZxyz(17.1282, 9.8178, 58.1075)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ACC #A7CC3A
analogous
#3A5ECC #5F3ACC #A83ACC
triadic
#5F3ACC #CC5F3A #3ACC5F
tetradic
#5F3ACC #CC3A5E #A7CC3A #3ACCA8
square
#5F3ACC #CC3A5E #A7CC3A #3ACCA8
split-complementary
#5F3ACC #CCA83A #5ECC3A
monochromatic
#321D6F #4729A0 #5F3ACC #866BD9 #AE9BE5

Accessibility & contrast

On white

7.09
#5F3ACC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5F3ACC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3ACC
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ACC#FFFFFF#000000##FFFFFF
##5F3ACC1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#0054C9
Tritanopia (blue-blind)
#32617F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3acc;
/* rgb */ color: rgb(95, 58, 204);
/* oklch */ color: oklch(48.4% 0.211 287.3);
Tailwind
colors: {
  custom: {
    50: '#9774dd',
    500: '#5f3acc',
    950: '#000000',
  },
}
SCSS
$custom: #5f3acc;
$custom-light: #9774dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3acc",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 204
  },
  "hsl": {
    "h": 255.205,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48413,
    "c": 0.21071,
    "h": 287.3
  },
  "luminance": 0.09819
}

Semantic roles & 50–950 ramp

primary
#5F3ACC
secondary
#C1D191
accent
#E246BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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