#5E2DCD#5E2DCD

#5E2DCD is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.9% C 0.225 H 288.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5E2DCD
RGBrgb(94, 45, 205)
HSLhsl(258, 64%, 49%)
HSVhsv(258, 78%, 80%)
CMYKcmyk(54.1%, 78%, 0%, 19.6%)
CIE-LABlab(35.33, 58.08, -74.14)
CIE-LCHlch(35.33, 94.18, 308.08°)
OKLaboklab(46.88% 0.0707 -0.2133)
OKLCHoklch(46.88% 0.225 288.3)
XYZxyz(16.5707, 8.6634, 58.5448)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2DCD #9CCD2D
analogous
#2D4CCD #5E2DCD #AE2DCD
triadic
#5E2DCD #CD5E2D #2DCD5E
tetradic
#5E2DCD #CD2D4C #9CCD2D #2DCDAE
square
#5E2DCD #CD2D4C #9CCD2D #2DCDAE
split-complementary
#5E2DCD #CDAE2D #4CCD2D
monochromatic
#301769 #47229B #5E2DCD #835CDB #A98EE6

Accessibility & contrast

On white

7.68
#5E2DCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5E2DCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2DCD
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2DCD#FFFFFF#000000##FFFFFF
##5E2DCD1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D1
Deuteranopia (green-blind)
#004FCA
Tritanopia (blue-blind)
#305B7D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e2dcd;
/* rgb */ color: rgb(94, 45, 205);
/* oklch */ color: oklch(46.9% 0.225 288.3);
Tailwind
colors: {
  custom: {
    50: '#976cde',
    500: '#5e2dcd',
    950: '#000000',
  },
}
SCSS
$custom: #5e2dcd;
$custom-light: #976cde;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2dcd",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 205
  },
  "hsl": {
    "h": 258.375,
    "s": 64,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46881,
    "c": 0.22472,
    "h": 288.3
  },
  "luminance": 0.08664
}

Semantic roles & 50–950 ramp

primary
#5E2DCD
secondary
#BAD185
accent
#E741B4
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5E2DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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