#5E2DFD#5E2DFD

#5E2DFD is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.6% C 0.275 H 281.6°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5E2DFD
RGBrgb(94, 45, 253)
HSLhsl(254, 98%, 58%)
HSVhsv(254, 82%, 99%)
CMYKcmyk(62.8%, 82.2%, 0%, 0.8%)
CIE-LABlab(40.16, 70.77, -93.53)
CIE-LCHlch(40.16, 117.28, 307.11°)
OKLaboklab(51.65% 0.0555 -0.2698)
OKLCHoklch(51.65% 0.275 281.6)
XYZxyz(23.2785, 11.3465, 93.8729)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DFD #CCFD2D
analogous
#2D64FD #5E2DFD #C62DFD
triadic
#5E2DFD #FD5E2D #2DFD5E
tetradic
#5E2DFD #FD2D64 #CCFD2D #2DFDC6
square
#5E2DFD #FD2D64 #CCFD2D #2DFDC6
split-complementary
#5E2DFD #FDC62D #64FD2D
monochromatic
#2A02AE #3902EB #5E2DFD #8C6AFE #BBA6FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E2DFD#FFFFFF#000000##FFFFFF
##5E2DFD1.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)
#0065FF
Deuteranopia (green-blind)
#0057F9
Tritanopia (blue-blind)
#007099
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e2dfd;
/* rgb */ color: rgb(94, 45, 253);
/* oklch */ color: oklch(51.6% 0.275 281.6);
Tailwind
colors: {
  custom: {
    50: '#9f6fff',
    500: '#5e2dfd',
    950: '#000000',
  },
}
SCSS
$custom: #5e2dfd;
$custom-light: #9f6fff;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2dfd",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 253
  },
  "hsl": {
    "h": 254.135,
    "s": 98.113,
    "l": 58.431
  },
  "oklch": {
    "l": 0.51647,
    "c": 0.27548,
    "h": 281.6
  },
  "luminance": 0.11348
}

Semantic roles & 50–950 ramp

primary
#5E2DFD
secondary
#D9EC9A
accent
#FF29CD
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#110818
muted
#807B86

Preview Lab

Preview with #5E2DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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