#5D2DCC#5D2DCC

#5D2DCC is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.224 H 288.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5D2DCC
RGBrgb(93, 45, 204)
HSLhsl(258, 64%, 49%)
HSVhsv(258, 78%, 80%)
CMYKcmyk(54.4%, 77.9%, 0%, 20%)
CIE-LABlab(35.13, 57.69, -73.89)
CIE-LCHlch(35.13, 93.74, 307.98°)
OKLaboklab(46.69% 0.0696 -0.2126)
OKLCHoklch(46.69% 0.224 288.1)
XYZxyz(16.3485, 8.5627, 57.9064)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2DCC #9CCC2D
analogous
#2D4DCC #5D2DCC #AD2DCC
triadic
#5D2DCC #CC5D2D #2DCC5D
tetradic
#5D2DCC #CC2D4D #9CCC2D #2DCCAD
square
#5D2DCC #CC2D4D #9CCC2D #2DCCAD
split-complementary
#5D2DCC #CCAD2D #4DCC2D
monochromatic
#2F1768 #46229A #5D2DCC #825BDB #A88DE6

Accessibility & contrast

On white

7.74
#5D2DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5D2DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2DCC
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2DCC#FFFFFF#000000##FFFFFF
##5D2DCC1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#2E5B7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5d2dcc;
/* rgb */ color: rgb(93, 45, 204);
/* oklch */ color: oklch(46.7% 0.224 288.1);
Tailwind
colors: {
  custom: {
    50: '#976cdd',
    500: '#5d2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5d2dcc;
$custom-light: #976cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2dcc",
  "rgb": {
    "r": 93,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 258.113,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46689,
    "c": 0.22369,
    "h": 288.1
  },
  "luminance": 0.08564
}

Semantic roles & 50–950 ramp

primary
#5D2DCC
secondary
#B9D085
accent
#E741B5
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5D2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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