#5D2DFE#5D2DFE

#5D2DFE is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.7% C 0.277 H 281.2°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5D2DFE
RGBrgb(93, 45, 254)
HSLhsl(254, 99%, 59%)
HSVhsv(254, 82%, 100%)
CMYKcmyk(63.4%, 82.3%, 0%, 0.4%)
CIE-LABlab(40.18, 70.95, -94.06)
CIE-LCHlch(40.18, 117.82, 307.03°)
OKLaboklab(51.67% 0.0537 -0.2714)
OKLCHoklch(51.67% 0.277 281.2)
XYZxyz(23.3363, 11.3579, 94.7092)
Luminance0.1136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2DFE #CEFE2D
analogous
#2D65FE #5D2DFE #C52DFE
triadic
#5D2DFE #FE5D2D #2DFE5D
tetradic
#5D2DFE #FE2D65 #CEFE2D #2DFEC5
square
#5D2DFE #FE2D65 #CEFE2D #2DFEC5
split-complementary
#5D2DFE #FEC52D #65FE2D
monochromatic
#2901B0 #3701ED #5D2DFE #8C6AFE #BBA7FF

Accessibility & contrast

On white

6.42
#5D2DFE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5D2DFE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D2DFE
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2DFE#FFFFFF#000000##FFFFFF
##5D2DFE1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066FF
Deuteranopia (green-blind)
#0057FA
Tritanopia (blue-blind)
#007099
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5d2dfe;
/* rgb */ color: rgb(93, 45, 254);
/* oklch */ color: oklch(51.7% 0.277 281.2);
Tailwind
colors: {
  custom: {
    50: '#9f6fff',
    500: '#5d2dfe',
    950: '#000000',
  },
}
SCSS
$custom: #5d2dfe;
$custom-light: #9f6fff;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2dfe",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 254
  },
  "hsl": {
    "h": 253.78,
    "s": 99.052,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5167,
    "c": 0.27667,
    "h": 281.2
  },
  "luminance": 0.1136
}

Semantic roles & 50–950 ramp

primary
#5D2DFE
secondary
#DAED9A
accent
#FF29CE
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#110818
muted
#807B86

Preview Lab

Preview with #5D2DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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