#5A2DB7#5A2DB7

#5A2DB7 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.4% C 0.201 H 290.7°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#5A2DB7
RGBrgb(90, 45, 183)
HSLhsl(260, 61%, 45%)
HSVhsv(260, 75%, 72%)
CMYKcmyk(50.8%, 75.4%, 0%, 28.2%)
CIE-LABlab(32.85, 51.59, -65.31)
CIE-LCHlch(32.85, 83.23, 308.31°)
OKLaboklab(44.43% 0.071 -0.1876)
OKLCHoklch(44.43% 0.201 290.7)
XYZxyz(13.6996, 7.4688, 45.5103)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DB7 #8AB72D
analogous
#2D45B7 #5A2DB7 #9F2DB7
triadic
#5A2DB7 #B75A2D #2DB75A
tetradic
#5A2DB7 #B72D45 #8AB72D #2DB79F
square
#5A2DB7 #B72D45 #8AB72D #2DB79F
split-complementary
#5A2DB7 #B79F2D #45B72D
monochromatic
#2A1555 #422186 #5A2DB7 #794ED3 #9E7FDF

Accessibility & contrast

On white

8.42
#5A2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2DB7
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DB7#FFFFFF#000000##FFFFFF
##5A2DB71.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#3A5370
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a2db7;
/* rgb */ color: rgb(90, 45, 183);
/* oklch */ color: oklch(44.4% 0.201 290.7);
Tailwind
colors: {
  custom: {
    50: '#926bce',
    500: '#5a2db7',
    950: '#000000',
  },
}
SCSS
$custom: #5a2db7;
$custom-light: #926bce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2db7",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 259.565,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44429,
    "c": 0.20057,
    "h": 290.7
  },
  "luminance": 0.07469
}

Semantic roles & 50–950 ramp

primary
#5A2DB7
secondary
#AEC878
accent
#E444B0
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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