#5A20BC#5A20BC

#5A20BC is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.6% C 0.218 H 291.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5A20BC
RGBrgb(90, 32, 188)
HSLhsl(262, 71%, 43%)
HSVhsv(262, 83%, 74%)
CMYKcmyk(52.1%, 83%, 0%, 26.3%)
CIE-LABlab(31.43, 58.39, -70.60)
CIE-LCHlch(31.43, 91.62, 309.59°)
OKLaboklab(43.59% 0.0784 -0.203)
OKLCHoklch(43.59% 0.218 291.1)
XYZxyz(13.8075, 6.8369, 48.1593)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A20BC #82BC20
analogous
#2034BC #5A20BC #A820BC
triadic
#5A20BC #BC5A20 #20BC5A
tetradic
#5A20BC #BC2034 #82BC20 #20BCA8
square
#5A20BC #BC2034 #82BC20 #20BCA8
split-complementary
#5A20BC #BCA820 #34BC20
monochromatic
#280E53 #411788 #5A20BC #783BDE #9C70E7

Accessibility & contrast

On white

8.87
#5A20BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5A20BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A20BC
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A20BC#FFFFFF#000000##FFFFFF
##5A20BC1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CC0
Deuteranopia (green-blind)
#0047B9
Tritanopia (blue-blind)
#365070
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a20bc;
/* rgb */ color: rgb(90, 32, 188);
/* oklch */ color: oklch(43.6% 0.218 291.1);
Tailwind
colors: {
  custom: {
    50: '#9465d1',
    500: '#5a20bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a20bc;
$custom-light: #9465d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a20bc",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 188
  },
  "hsl": {
    "h": 262.308,
    "s": 70.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43587,
    "c": 0.21758,
    "h": 291.1
  },
  "luminance": 0.06838
}

Semantic roles & 50–950 ramp

primary
#5A20BC
secondary
#A9CD6B
accent
#EE3AAB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5A20BC

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

Preview Lab → · Contrast checker → · Palette generator →

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