#5E2DFF#5E2DFF

#5E2DFF is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.9% C 0.278 H 281.4°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#5E2DFF
RGBrgb(94, 45, 255)
HSLhsl(254, 100%, 59%)
HSVhsv(254, 82%, 100%)
CMYKcmyk(63.1%, 82.4%, 0%, 0%)
CIE-LABlab(40.37, 71.29, -94.30)
CIE-LCHlch(40.37, 118.21, 307.09°)
OKLaboklab(51.85% 0.0548 -0.2721)
OKLCHoklch(51.85% 0.278 281.4)
XYZxyz(23.5988, 11.4746, 95.5596)
Luminance0.1148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DFF #CEFF2D
analogous
#2D65FF #5E2DFF #C72DFF
triadic
#5E2DFF #FF5E2D #2DFF5E
tetradic
#5E2DFF #FF2D65 #CEFF2D #2DFFC7
square
#5E2DFF #FF2D65 #CEFF2D #2DFFC7
split-complementary
#5E2DFF #FFC72D #65FF2D
monochromatic
#2900B2 #3800EF #5E2DFF #8D6AFF #BCA7FF

Accessibility & contrast

On white

6.37
#5E2DFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5E2DFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E2DFF
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2DFF#FFFFFF#000000##FFFFFF
##5E2DFF1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066FF
Deuteranopia (green-blind)
#0057FB
Tritanopia (blue-blind)
#00709A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5e2dff;
/* rgb */ color: rgb(94, 45, 255);
/* oklch */ color: oklch(51.9% 0.278 281.4);
Tailwind
colors: {
  custom: {
    50: '#9f6fff',
    500: '#5e2dff',
    950: '#000000',
  },
}
SCSS
$custom: #5e2dff;
$custom-light: #9f6fff;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2dff",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 255
  },
  "hsl": {
    "h": 254,
    "s": 100,
    "l": 58.824
  },
  "oklch": {
    "l": 0.51853,
    "c": 0.27755,
    "h": 281.4
  },
  "luminance": 0.11476
}

Semantic roles & 50–950 ramp

primary
#5E2DFF
secondary
#DAED9B
accent
#FF29CD
background
#FBF7FF
surface
#F5EDFF
border
#CFC8D7
text
#110818
muted
#807B86

Preview Lab

Preview with #5E2DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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