#5A2CBD#5A2CBD

#5A2CBD is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.9% C 0.208 H 289.7°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#5A2CBD
RGBrgb(90, 44, 189)
HSLhsl(259, 62%, 46%)
HSVhsv(259, 77%, 74%)
CMYKcmyk(52.4%, 76.7%, 0%, 25.9%)
CIE-LABlab(33.24, 53.69, -68.22)
CIE-LCHlch(33.24, 86.81, 308.20°)
OKLaboklab(44.87% 0.0701 -0.1961)
OKLCHoklch(44.87% 0.208 289.7)
XYZxyz(14.2998, 7.6485, 48.8571)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CBD #8FBD2C
analogous
#2C47BD #5A2CBD #A22CBD
triadic
#5A2CBD #BD5A2C #2CBD5A
tetradic
#5A2CBD #BD2C47 #8FBD2C #2CBDA2
square
#5A2CBD #BD2C47 #8FBD2C #2CBDA2
split-complementary
#5A2CBD #BDA22C #47BD2C
monochromatic
#2B155A #42208B #5A2CBD #7B50D6 #A082E2

Accessibility & contrast

On white

8.30
#5A2CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#5A2CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2CBD
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2CBD#FFFFFF#000000##FFFFFF
##5A2CBD1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C1
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#355573
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a2cbd;
/* rgb */ color: rgb(90, 44, 189);
/* oklch */ color: oklch(44.9% 0.208 289.7);
Tailwind
colors: {
  custom: {
    50: '#936bd2',
    500: '#5a2cbd',
    950: '#000000',
  },
}
SCSS
$custom: #5a2cbd;
$custom-light: #936bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2cbd",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 259.034,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44869,
    "c": 0.20826,
    "h": 289.7
  },
  "luminance": 0.07649
}

Semantic roles & 50–950 ramp

primary
#5A2CBD
secondary
#B1CB7A
accent
#E542B2
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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