#5C3DA8#5C3DA8

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

Color values

HEX#5C3DA8
RGBrgb(92, 61, 168)
HSLhsl(257, 47%, 45%)
HSVhsv(257, 64%, 66%)
CMYKcmyk(45.2%, 63.7%, 0%, 34.1%)
CIE-LABlab(34.88, 39.27, -53.05)
CIE-LCHlch(34.88, 66.01, 306.51°)
OKLaboklab(45.55% 0.0611 -0.1516)
OKLCHoklch(45.55% 0.163 292)
XYZxyz(13.1483, 8.4395, 37.9744)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3DA8 #89A83D
analogous
#3D54A8 #5C3DA8 #913DA8
triadic
#5C3DA8 #A85C3D #3DA85C
tetradic
#5C3DA8 #A83D54 #89A83D #3DA891
square
#5C3DA8 #A83D54 #89A83D #3DA891
split-complementary
#5C3DA8 #A8913D #54A83D
monochromatic
#2B1C4E #432D7B #5C3DA8 #7C5EC4 #A08BD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C3DA8#FFFFFF#000000##FFFFFF
##5C3DA81.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)
#0054AB
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#46566D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5c3da8;
/* rgb */ color: rgb(92, 61, 168);
/* oklch */ color: oklch(45.5% 0.163 292.0);
Tailwind
colors: {
  custom: {
    50: '#9074c3',
    500: '#5c3da8',
    950: '#000000',
  },
}
SCSS
$custom: #5c3da8;
$custom-light: #9074c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3da8",
  "rgb": {
    "r": 92,
    "g": 61,
    "b": 168
  },
  "hsl": {
    "h": 257.383,
    "s": 46.725,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45545,
    "c": 0.16345,
    "h": 292
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

primary
#5C3DA8
secondary
#ADBF81
accent
#D651B0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5C3DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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