#5F3BD2#5F3BD2

#5F3BD2 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.1% C 0.217 H 286.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5F3BD2
RGBrgb(95, 59, 210)
HSLhsl(254, 63%, 53%)
HSVhsv(254, 72%, 82%)
CMYKcmyk(54.8%, 71.9%, 0%, 17.6%)
CIE-LABlab(38.22, 52.95, -72.27)
CIE-LCHlch(38.22, 89.59, 306.23°)
OKLaboklab(49.08% 0.0607 -0.2079)
OKLCHoklch(49.08% 0.217 286.3)
XYZxyz(17.9127, 10.2130, 61.9877)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BD2 #AED23B
analogous
#3B62D2 #5F3BD2 #AB3BD2
triadic
#5F3BD2 #D25F3B #3BD25F
tetradic
#5F3BD2 #D23B62 #AED23B #3BD2AB
square
#5F3BD2 #D23B62 #AED23B #3BD2AB
split-complementary
#5F3BD2 #D2AB3B #62D23B
monochromatic
#311B77 #4627A9 #5F3BD2 #886DDD #B09FE9

Accessibility & contrast

On white

6.90
#5F3BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5F3BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3BD2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BD2#FFFFFF#000000##FFFFFF
##5F3BD21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#2C6483
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3bd2;
/* rgb */ color: rgb(95, 59, 210);
/* oklch */ color: oklch(49.1% 0.217 286.3);
Tailwind
colors: {
  custom: {
    50: '#9874e1',
    500: '#5f3bd2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bd2;
$custom-light: #9874e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bd2",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 210
  },
  "hsl": {
    "h": 254.305,
    "s": 62.656,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49076,
    "c": 0.2166,
    "h": 286.3
  },
  "luminance": 0.10214
}

Semantic roles & 50–950 ramp

primary
#5F3BD2
secondary
#C6D594
accent
#E642BF
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F3BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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