#5F3DCF#5F3DCF

#5F3DCF is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.1% C 0.211 H 286.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5F3DCF
RGBrgb(95, 61, 207)
HSLhsl(254, 60%, 53%)
HSVhsv(254, 71%, 81%)
CMYKcmyk(54.1%, 70.5%, 0%, 18.8%)
CIE-LABlab(38.33, 51.06, -70.36)
CIE-LCHlch(38.33, 86.94, 305.97°)
OKLaboklab(49.07% 0.0597 -0.2023)
OKLCHoklch(49.07% 0.211 286.4)
XYZxyz(17.6472, 10.2744, 60.0727)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DCF #ADCF3D
analogous
#3D64CF #5F3DCF #A83DCF
triadic
#5F3DCF #CF5F3D #3DCF5F
tetradic
#5F3DCF #CF3D64 #ADCF3D #3DCFA8
square
#5F3DCF #CF3D64 #ADCF3D #3DCFA8
split-complementary
#5F3DCF #CFA83D #64CF3D
monochromatic
#311D75 #4629A6 #5F3DCF #876EDB #B09FE7

Accessibility & contrast

On white

6.87
#5F3DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5F3DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DCF
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DCF#FFFFFF#000000##FFFFFF
##5F3DCF1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0056CC
Tritanopia (blue-blind)
#2F6482
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3dcf;
/* rgb */ color: rgb(95, 61, 207);
/* oklch */ color: oklch(49.1% 0.211 286.4);
Tailwind
colors: {
  custom: {
    50: '#9775df',
    500: '#5f3dcf',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dcf;
$custom-light: #9775df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dcf",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 207
  },
  "hsl": {
    "h": 253.973,
    "s": 60.331,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49073,
    "c": 0.21095,
    "h": 286.4
  },
  "luminance": 0.10275
}

Semantic roles & 50–950 ramp

primary
#5F3DCF
secondary
#C5D494
accent
#E344BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F3DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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