#5A3CC0#5A3CC0

#5A3CC0 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.2% C 0.195 H 286.8°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#5A3CC0
RGBrgb(90, 60, 192)
HSLhsl(254, 52%, 49%)
HSVhsv(254, 69%, 75%)
CMYKcmyk(53.1%, 68.7%, 0%, 24.7%)
CIE-LABlab(36.39, 46.45, -64.83)
CIE-LCHlch(36.39, 79.75, 305.62°)
OKLaboklab(47.18% 0.0562 -0.1862)
OKLCHoklch(47.18% 0.195 286.8)
XYZxyz(15.3439, 9.2104, 50.8282)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CC0 #A2C03C
analogous
#3C60C0 #5A3CC0 #9C3CC0
triadic
#5A3CC0 #C05A3C #3CC05A
tetradic
#5A3CC0 #C03C60 #A2C03C #3CC09C
square
#5A3CC0 #C03C60 #A2C03C #3CC09C
split-complementary
#5A3CC0 #C09C3C #60C03C
monochromatic
#2E1F63 #442D91 #5A3CC0 #8069D0 #A898DF

Accessibility & contrast

On white

7.39
#5A3CC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5A3CC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CC0
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CC0#FFFFFF#000000##FFFFFF
##5A3CC01.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C4
Deuteranopia (green-blind)
#0052BD
Tritanopia (blue-blind)
#315E79
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3cc0;
/* rgb */ color: rgb(90, 60, 192);
/* oklch */ color: oklch(47.2% 0.195 286.8);
Tailwind
colors: {
  custom: {
    50: '#9274d4',
    500: '#5a3cc0',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cc0;
$custom-light: #9274d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cc0",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 192
  },
  "hsl": {
    "h": 253.636,
    "s": 52.381,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47178,
    "c": 0.19456,
    "h": 286.8
  },
  "luminance": 0.09211
}

Semantic roles & 50–950 ramp

primary
#5A3CC0
secondary
#BDCA8D
accent
#DC4CBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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