#5F3DCE#5F3DCE

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

Color values

HEX#5F3DCE
RGBrgb(95, 61, 206)
HSLhsl(254, 60%, 52%)
HSVhsv(254, 70%, 81%)
CMYKcmyk(53.9%, 70.4%, 0%, 19.2%)
CIE-LABlab(38.24, 50.77, -69.92)
CIE-LCHlch(38.24, 86.41, 305.98°)
OKLaboklab(48.99% 0.0599 -0.201)
OKLCHoklch(48.99% 0.21 286.6)
XYZxyz(17.5253, 10.2257, 59.4309)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DCE #ACCE3D
analogous
#3D63CE #5F3DCE #A83DCE
triadic
#5F3DCE #CE5F3D #3DCE5F
tetradic
#5F3DCE #CE3D63 #ACCE3D #3DCEA8
square
#5F3DCE #CE3D63 #ACCE3D #3DCEA8
split-complementary
#5F3DCE #CEA83D #63CE3D
monochromatic
#311D73 #4629A4 #5F3DCE #876EDA #B09FE7

Accessibility & contrast

On white

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

On black

3.05
#5F3DCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5F3DCE#FFFFFF#000000##FFFFFF
##5F3DCE1.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3dce;
/* rgb */ color: rgb(95, 61, 206);
/* oklch */ color: oklch(49.0% 0.210 286.6);
Tailwind
colors: {
  custom: {
    50: '#9775de',
    500: '#5f3dce',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dce;
$custom-light: #9775de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dce",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 206
  },
  "hsl": {
    "h": 254.069,
    "s": 59.671,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48986,
    "c": 0.20977,
    "h": 286.6
  },
  "luminance": 0.10227
}

Semantic roles & 50–950 ramp

primary
#5F3DCE
secondary
#C4D394
accent
#E345BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F3DCE

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

Preview Lab → · Contrast checker → · Palette generator →

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