#5F3CCF#5F3CCF

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

Color values

HEX#5F3CCF
RGBrgb(95, 60, 207)
HSLhsl(254, 60%, 52%)
HSVhsv(254, 71%, 81%)
CMYKcmyk(54.1%, 71%, 0%, 18.8%)
CIE-LABlab(38.14, 51.58, -70.67)
CIE-LCHlch(38.14, 87.49, 306.13°)
OKLaboklab(48.94% 0.0605 -0.2032)
OKLCHoklch(48.94% 0.212 286.6)
XYZxyz(17.5943, 10.1687, 60.0550)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CCF #ACCF3C
analogous
#3C62CF #5F3CCF #A93CCF
triadic
#5F3CCF #CF5F3C #3CCF5F
tetradic
#5F3CCF #CF3C62 #ACCF3C #3CCFA9
square
#5F3CCF #CF3C62 #ACCF3C #3CCFA9
split-complementary
#5F3CCF #CFA93C #62CF3C
monochromatic
#311D74 #4629A5 #5F3CCF #876DDB #B09EE7

Accessibility & contrast

On white

6.92
#5F3CCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5F3CCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3CCF
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CCF#FFFFFF#000000##FFFFFF
##5F3CCF1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3ccf;
/* rgb */ color: rgb(95, 60, 207);
/* oklch */ color: oklch(48.9% 0.212 286.6);
Tailwind
colors: {
  custom: {
    50: '#9775df',
    500: '#5f3ccf',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ccf;
$custom-light: #9775df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ccf",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 207
  },
  "hsl": {
    "h": 254.286,
    "s": 60.494,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4894,
    "c": 0.21204,
    "h": 286.6
  },
  "luminance": 0.1017
}

Semantic roles & 50–950 ramp

primary
#5F3CCF
secondary
#C4D393
accent
#E444BE
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F3CCF

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

Preview Lab → · Contrast checker → · Palette generator →

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