#5C3FAF#5C3FAF

#5C3FAF is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.4% C 0.170 H 290.1°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#5C3FAF
RGBrgb(92, 63, 175)
HSLhsl(256, 47%, 47%)
HSVhsv(256, 64%, 69%)
CMYKcmyk(47.4%, 64%, 0%, 31.4%)
CIE-LABlab(35.84, 40.15, -55.67)
CIE-LCHlch(35.84, 68.64, 305.80°)
OKLaboklab(46.41% 0.0583 -0.1593)
OKLCHoklch(46.41% 0.17 290.1)
XYZxyz(13.9268, 8.9249, 41.5380)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C3FAF #92AF3F
analogous
#3F5AAF #5C3FAF #943FAF
triadic
#5C3FAF #AF5C3F #3FAF5C
tetradic
#5C3FAF #AF3F5A #92AF3F #3FAF94
square
#5C3FAF #AF3F5A #92AF3F #3FAF94
split-complementary
#5C3FAF #AF943F #5AAF3F
monochromatic
#2D1F55 #442F82 #5C3FAF #7E64C7 #A391D7

Accessibility & contrast

On white

7.54
#5C3FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5C3FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C3FAF
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C3FAF#FFFFFF#000000##FFFFFF
##5C3FAF1.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B3
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#425A71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5c3faf;
/* rgb */ color: rgb(92, 63, 175);
/* oklch */ color: oklch(46.4% 0.170 290.1);
Tailwind
colors: {
  custom: {
    50: '#9176c8',
    500: '#5c3faf',
    950: '#000000',
  },
}
SCSS
$custom: #5c3faf;
$custom-light: #9176c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c3faf",
  "rgb": {
    "r": 92,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 255.536,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46406,
    "c": 0.16964,
    "h": 290.1
  },
  "luminance": 0.08925
}

Semantic roles & 50–950 ramp

primary
#5C3FAF
secondary
#B3C387
accent
#D751B4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5C3FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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