#5A2DCC#5A2DCC

#5A2DCC is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.4% C 0.224 H 286.9°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#5A2DCC
RGBrgb(90, 45, 204)
HSLhsl(257, 64%, 49%)
HSVhsv(257, 78%, 80%)
CMYKcmyk(55.9%, 77.9%, 0%, 20%)
CIE-LABlab(34.82, 57.31, -74.40)
CIE-LCHlch(34.82, 93.92, 307.61°)
OKLaboklab(46.4% 0.0651 -0.2142)
OKLCHoklch(46.4% 0.224 286.9)
XYZxyz(16.0507, 8.4092, 57.8924)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DCC #9FCC2D
analogous
#2D50CC #5A2DCC #AA2DCC
triadic
#5A2DCC #CC5A2D #2DCC5A
tetradic
#5A2DCC #CC2D50 #9FCC2D #2DCCAA
square
#5A2DCC #CC2D50 #9FCC2D #2DCCAA
split-complementary
#5A2DCC #CCAA2D #50CC2D
monochromatic
#2E1768 #44229A #5A2DCC #7F5BDB #A68DE6

Accessibility & contrast

On white

7.83
#5A2DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5A2DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DCC
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DCC#FFFFFF#000000##FFFFFF
##5A2DCC1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#004DC9
Tritanopia (blue-blind)
#255B7C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a2dcc;
/* rgb */ color: rgb(90, 45, 204);
/* oklch */ color: oklch(46.4% 0.224 286.9);
Tailwind
colors: {
  custom: {
    50: '#956cdd',
    500: '#5a2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5a2dcc;
$custom-light: #956cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2dcc",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 256.981,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46403,
    "c": 0.22388,
    "h": 286.9
  },
  "luminance": 0.0841
}

Semantic roles & 50–950 ramp

primary
#5A2DCC
secondary
#BBD085
accent
#E741B8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5A2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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