#5F3CCE#5F3CCE

#5F3CCE is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.9% C 0.211 H 286.7°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5F3CCE
RGBrgb(95, 60, 206)
HSLhsl(254, 60%, 52%)
HSVhsv(254, 71%, 81%)
CMYKcmyk(53.9%, 70.9%, 0%, 19.2%)
CIE-LABlab(38.06, 51.30, -70.23)
CIE-LCHlch(38.06, 86.97, 306.14°)
OKLaboklab(48.85% 0.0607 -0.2019)
OKLCHoklch(48.85% 0.211 286.7)
XYZxyz(17.4724, 10.1199, 59.4132)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CCE #ABCE3C
analogous
#3C62CE #5F3CCE #A83CCE
triadic
#5F3CCE #CE5F3C #3CCE5F
tetradic
#5F3CCE #CE3C62 #ABCE3C #3CCEA8
square
#5F3CCE #CE3C62 #ABCE3C #3CCEA8
split-complementary
#5F3CCE #CEA83C #62CE3C
monochromatic
#311D73 #4729A4 #5F3CCE #876DDA #AF9EE7

Accessibility & contrast

On white

6.94
#5F3CCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5F3CCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3CCE
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CCE#FFFFFF#000000##FFFFFF
##5F3CCE1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0055CB
Tritanopia (blue-blind)
#306381
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3cce;
/* rgb */ color: rgb(95, 60, 206);
/* oklch */ color: oklch(48.9% 0.211 286.7);
Tailwind
colors: {
  custom: {
    50: '#9775de',
    500: '#5f3cce',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cce;
$custom-light: #9775de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cce",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 206
  },
  "hsl": {
    "h": 254.384,
    "s": 59.836,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48852,
    "c": 0.21087,
    "h": 286.7
  },
  "luminance": 0.10121
}

Semantic roles & 50–950 ramp

primary
#5F3CCE
secondary
#C3D393
accent
#E345BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F3CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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