#5A2DB3#5A2DB3

#5A2DB3 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.196 H 291.5°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#5A2DB3
RGBrgb(90, 45, 179)
HSLhsl(260, 60%, 44%)
HSVhsv(260, 75%, 70%)
CMYKcmyk(49.7%, 74.9%, 0%, 29.8%)
CIE-LABlab(32.49, 50.50, -63.53)
CIE-LCHlch(32.49, 81.15, 308.48°)
OKLaboklab(44.07% 0.072 -0.1824)
OKLCHoklch(44.07% 0.196 291.5)
XYZxyz(13.2892, 7.3046, 43.3488)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2DB3 #86B32D
analogous
#2D43B3 #5A2DB3 #9D2DB3
triadic
#5A2DB3 #B35A2D #2DB35A
tetradic
#5A2DB3 #B32D43 #86B32D #2DB39D
square
#5A2DB3 #B32D43 #86B32D #2DB39D
split-complementary
#5A2DB3 #B39D2D #43B32D
monochromatic
#291451 #412182 #5A2DB3 #794BD2 #9D7CDE

Accessibility & contrast

On white

8.53
#5A2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5A2DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2DB3
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2DB3#FFFFFF#000000##FFFFFF
##5A2DB31.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#3C516E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2db3;
/* rgb */ color: rgb(90, 45, 179);
/* oklch */ color: oklch(44.1% 0.196 291.5);
Tailwind
colors: {
  custom: {
    50: '#916bcb',
    500: '#5a2db3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2db3;
$custom-light: #916bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2db3",
  "rgb": {
    "r": 90,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 260.149,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44065,
    "c": 0.19606,
    "h": 291.5
  },
  "luminance": 0.07305
}

Semantic roles & 50–950 ramp

primary
#5A2DB3
secondary
#ABC775
accent
#E345AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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