#5A2DB6#5A2DB6

#5A2DB6 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.3% C 0.199 H 290.9°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#5A2DB6
RGBrgb(90, 45, 182)
HSLhsl(260, 60%, 45%)
HSVhsv(260, 75%, 71%)
CMYKcmyk(50.5%, 75.3%, 0%, 28.6%)
CIE-LABlab(32.76, 51.32, -64.87)
CIE-LCHlch(32.76, 82.71, 308.35°)
OKLaboklab(44.34% 0.0712 -0.1863)
OKLCHoklch(44.34% 0.199 290.9)
XYZxyz(13.5959, 7.4273, 44.9641)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DB6 #89B62D
analogous
#2D45B6 #5A2DB6 #9F2DB6
triadic
#5A2DB6 #B65A2D #2DB65A
tetradic
#5A2DB6 #B62D45 #89B62D #2DB69F
square
#5A2DB6 #B62D45 #89B62D #2DB69F
split-complementary
#5A2DB6 #B69F2D #45B62D
monochromatic
#291554 #422185 #5A2DB6 #794DD3 #9E7EDF

Accessibility & contrast

On white

8.45
#5A2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5A2DB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DB6
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DB6#FFFFFF#000000##FFFFFF
##5A2DB61.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#3A5370
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2db6;
/* rgb */ color: rgb(90, 45, 182);
/* oklch */ color: oklch(44.3% 0.199 290.9);
Tailwind
colors: {
  custom: {
    50: '#926bcd',
    500: '#5a2db6',
    950: '#000000',
  },
}
SCSS
$custom: #5a2db6;
$custom-light: #926bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2db6",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 259.708,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44337,
    "c": 0.19945,
    "h": 290.9
  },
  "luminance": 0.07428
}

Semantic roles & 50–950 ramp

primary
#5A2DB6
secondary
#ADC877
accent
#E344AF
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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