#5F3ECF#5F3ECF

#5F3ECF is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.2% C 0.210 H 286.3°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5F3ECF
RGBrgb(95, 62, 207)
HSLhsl(254, 60%, 53%)
HSVhsv(254, 70%, 81%)
CMYKcmyk(54.1%, 70%, 0%, 18.8%)
CIE-LABlab(38.52, 50.53, -70.05)
CIE-LCHlch(38.52, 86.38, 305.81°)
OKLaboklab(49.21% 0.0588 -0.2014)
OKLCHoklch(49.21% 0.21 286.3)
XYZxyz(17.7011, 10.3822, 60.0906)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3ECF #AECF3E
analogous
#3E66CF #5F3ECF #A73ECF
triadic
#5F3ECF #CF5F3E #3ECF5F
tetradic
#5F3ECF #CF3E66 #AECF3E #3ECFA7
square
#5F3ECF #CF3E66 #AECF3E #3ECFA7
split-complementary
#5F3ECF #CFA73E #66CF3E
monochromatic
#311D75 #4629A6 #5F3ECF #886FDB #B0A0E7

Accessibility & contrast

On white

6.83
#5F3ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5F3ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3ECF
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3ECF#FFFFFF#000000##FFFFFF
##5F3ECF1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f3ecf;
/* rgb */ color: rgb(95, 62, 207);
/* oklch */ color: oklch(49.2% 0.210 286.3);
Tailwind
colors: {
  custom: {
    50: '#9776df',
    500: '#5f3ecf',
    950: '#000000',
  },
}
SCSS
$custom: #5f3ecf;
$custom-light: #9776df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3ecf",
  "rgb": {
    "r": 95,
    "g": 62,
    "b": 207
  },
  "hsl": {
    "h": 253.655,
    "s": 60.166,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49208,
    "c": 0.20985,
    "h": 286.3
  },
  "luminance": 0.10383
}

Semantic roles & 50–950 ramp

primary
#5F3ECF
secondary
#C6D495
accent
#E344BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5F3ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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