#5A32C0#5A32C0

#5A32C0 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.206 H 288.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5A32C0
RGBrgb(90, 50, 192)
HSLhsl(257, 59%, 47%)
HSVhsv(257, 74%, 75%)
CMYKcmyk(53.1%, 74%, 0%, 24.7%)
CIE-LABlab(34.52, 51.66, -67.89)
CIE-LCHlch(34.52, 85.31, 307.27°)
OKLaboklab(45.85% 0.0647 -0.1952)
OKLCHoklch(45.85% 0.206 288.3)
XYZxyz(14.8687, 8.2599, 50.6698)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A32C0 #98C032
analogous
#3251C0 #5A32C0 #A132C0
triadic
#5A32C0 #C05A32 #32C05A
tetradic
#5A32C0 #C03251 #98C032 #32C0A1
square
#5A32C0 #C03251 #98C032 #32C0A1
split-complementary
#5A32C0 #C0A132 #51C032
monochromatic
#2C195F #43258F #5A32C0 #7D5BD4 #A48BE1

Accessibility & contrast

On white

7.92
#5A32C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5A32C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A32C0
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A32C0#FFFFFF#000000##FFFFFF
##5A32C01.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C4
Deuteranopia (green-blind)
#004DBD
Tritanopia (blue-blind)
#325976
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5a32c0;
/* rgb */ color: rgb(90, 50, 192);
/* oklch */ color: oklch(45.9% 0.206 288.3);
Tailwind
colors: {
  custom: {
    50: '#936ed4',
    500: '#5a32c0',
    950: '#000000',
  },
}
SCSS
$custom: #5a32c0;
$custom-light: #936ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a32c0",
  "rgb": {
    "r": 90,
    "g": 50,
    "b": 192
  },
  "hsl": {
    "h": 256.901,
    "s": 58.678,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45851,
    "c": 0.20563,
    "h": 288.3
  },
  "luminance": 0.08261
}

Semantic roles & 50–950 ramp

primary
#5A32C0
secondary
#B7CB83
accent
#E246B6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A32C0

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

Preview Lab → · Contrast checker → · Palette generator →

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