#5F3BCE#5F3BCE

#5F3BCE is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.7% C 0.212 H 286.9°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5F3BCE
RGBrgb(95, 59, 206)
HSLhsl(255, 60%, 52%)
HSVhsv(255, 71%, 81%)
CMYKcmyk(53.9%, 71.4%, 0%, 19.2%)
CIE-LABlab(37.87, 51.81, -70.53)
CIE-LCHlch(37.87, 87.52, 306.30°)
OKLaboklab(48.72% 0.0615 -0.2028)
OKLCHoklch(48.72% 0.212 286.9)
XYZxyz(17.4205, 10.0161, 59.3959)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BCE #AACE3B
analogous
#3B61CE #5F3BCE #A93BCE
triadic
#5F3BCE #CE5F3B #3BCE5F
tetradic
#5F3BCE #CE3B61 #AACE3B #3BCEA9
square
#5F3BCE #CE3B61 #AACE3B #3BCEA9
split-complementary
#5F3BCE #CEA93B #61CE3B
monochromatic
#311D72 #4729A3 #5F3BCE #876CDA #AF9DE6

Accessibility & contrast

On white

6.99
#5F3BCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5F3BCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3BCE
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BCE#FFFFFF#000000##FFFFFF
##5F3BCE1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0055CB
Tritanopia (blue-blind)
#306281
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f3bce;
/* rgb */ color: rgb(95, 59, 206);
/* oklch */ color: oklch(48.7% 0.212 286.9);
Tailwind
colors: {
  custom: {
    50: '#9774de',
    500: '#5f3bce',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bce;
$custom-light: #9774de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bce",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 206
  },
  "hsl": {
    "h": 254.694,
    "s": 60,
    "l": 51.961
  },
  "oklch": {
    "l": 0.4872,
    "c": 0.21195,
    "h": 286.9
  },
  "luminance": 0.10017
}

Semantic roles & 50–950 ramp

primary
#5F3BCE
secondary
#C3D392
accent
#E345BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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