#5F3ACB#5F3ACB

#5F3ACB is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.210 H 287.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5F3ACB
RGBrgb(95, 58, 203)
HSLhsl(255, 58%, 51%)
HSVhsv(255, 71%, 80%)
CMYKcmyk(53.2%, 71.4%, 0%, 20.4%)
CIE-LABlab(37.43, 51.48, -69.52)
CIE-LCHlch(37.43, 86.51, 306.52°)
OKLaboklab(48.32% 0.063 -0.1999)
OKLCHoklch(48.32% 0.21 287.5)
XYZxyz(17.0087, 9.7699, 57.4779)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ACB #A6CB3A
analogous
#3A5DCB #5F3ACB #A73ACB
triadic
#5F3ACB #CB5F3A #3ACB5F
tetradic
#5F3ACB #CB3A5D #A6CB3A #3ACBA7
square
#5F3ACB #CB3A5D #A6CB3A #3ACBA7
split-complementary
#5F3ACB #CBA73A #5DCB3A
monochromatic
#321D6E #472A9E #5F3ACB #866AD8 #AE9BE5

Accessibility & contrast

On white

7.11
#5F3ACB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5F3ACB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3ACB
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ACB#FFFFFF#000000##FFFFFF
##5F3ACB1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#0054C8
Tritanopia (blue-blind)
#33617F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f3acb;
/* rgb */ color: rgb(95, 58, 203);
/* oklch */ color: oklch(48.3% 0.210 287.5);
Tailwind
colors: {
  custom: {
    50: '#9774dc',
    500: '#5f3acb',
    950: '#000000',
  },
}
SCSS
$custom: #5f3acb;
$custom-light: #9774dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3acb",
  "rgb": {
    "r": 95,
    "g": 58,
    "b": 203
  },
  "hsl": {
    "h": 255.31,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48324,
    "c": 0.20955,
    "h": 287.5
  },
  "luminance": 0.09771
}

Semantic roles & 50–950 ramp

primary
#5F3ACB
secondary
#C0D090
accent
#E146BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3ACB

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

Preview Lab → · Contrast checker → · Palette generator →

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