#5F3CB2#5F3CB2

#5F3CB2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.5% C 0.177 H 291.6°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#5F3CB2
RGBrgb(95, 60, 178)
HSLhsl(258, 50%, 47%)
HSVhsv(258, 66%, 70%)
CMYKcmyk(46.6%, 66.3%, 0%, 30.2%)
CIE-LABlab(35.75, 43.30, -57.59)
CIE-LCHlch(35.75, 72.05, 306.94°)
OKLaboklab(46.49% 0.0654 -0.1648)
OKLCHoklch(46.49% 0.177 291.6)
XYZxyz(14.3688, 8.8785, 43.0675)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CB2 #8FB23C
analogous
#3C54B2 #5F3CB2 #9A3CB2
triadic
#5F3CB2 #B25F3C #3CB25F
tetradic
#5F3CB2 #B23C54 #8FB23C #3CB29A
square
#5F3CB2 #B23C54 #8FB23C #3CB29A
split-complementary
#5F3CB2 #B29A3C #54B23C
monochromatic
#2E1D56 #472D84 #5F3CB2 #8061CA #A58FD9

Accessibility & contrast

On white

7.57
#5F3CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F3CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3CB2
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CB2#FFFFFF#000000##FFFFFF
##5F3CB21.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#465972
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3cb2;
/* rgb */ color: rgb(95, 60, 178);
/* oklch */ color: oklch(46.5% 0.177 291.6);
Tailwind
colors: {
  custom: {
    50: '#9374ca',
    500: '#5f3cb2',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cb2;
$custom-light: #9374ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cb2",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 257.797,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46486,
    "c": 0.17731,
    "h": 291.6
  },
  "luminance": 0.08879
}

Semantic roles & 50–950 ramp

primary
#5F3CB2
secondary
#B2C486
accent
#D94FB0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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