#5C3CAB#5C3CAB

#5C3CAB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.6% C 0.169 H 291.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5C3CAB
RGBrgb(92, 60, 171)
HSLhsl(257, 48%, 45%)
HSVhsv(257, 65%, 67%)
CMYKcmyk(46.2%, 64.9%, 0%, 32.9%)
CIE-LABlab(34.90, 40.71, -54.82)
CIE-LCHlch(34.90, 68.28, 306.60°)
OKLaboklab(45.63% 0.0619 -0.1568)
OKLCHoklch(45.63% 0.169 291.6)
XYZxyz(13.3781, 8.4468, 39.4457)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3CAB #8BAB3C
analogous
#3C54AB #5C3CAB #933CAB
triadic
#5C3CAB #AB5C3C #3CAB5C
tetradic
#5C3CAB #AB3C54 #8BAB3C #3CAB93
square
#5C3CAB #AB3C54 #8BAB3C #3CAB93
split-complementary
#5C3CAB #AB933C #54AB3C
monochromatic
#2B1C50 #442C7E #5C3CAB #7C5EC6 #A18BD6

Accessibility & contrast

On white

7.81
#5C3CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5C3CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3CAB
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3CAB#FFFFFF#000000##FFFFFF
##5C3CAB1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#44566E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5c3cab;
/* rgb */ color: rgb(92, 60, 171);
/* oklch */ color: oklch(45.6% 0.169 291.6);
Tailwind
colors: {
  custom: {
    50: '#9174c5',
    500: '#5c3cab',
    950: '#000000',
  },
}
SCSS
$custom: #5c3cab;
$custom-light: #9174c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3cab",
  "rgb": {
    "r": 92,
    "g": 60,
    "b": 171
  },
  "hsl": {
    "h": 257.297,
    "s": 48.052,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45627,
    "c": 0.16858,
    "h": 291.6
  },
  "luminance": 0.08447
}

Semantic roles & 50–950 ramp

primary
#5C3CAB
secondary
#AFC182
accent
#D850B1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5C3CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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