#5C31B0#5C31B0

#5C31B0 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.5% C 0.188 H 292.5°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5C31B0
RGBrgb(92, 49, 176)
HSLhsl(260, 56%, 44%)
HSVhsv(260, 72%, 69%)
CMYKcmyk(47.7%, 72.2%, 0%, 31%)
CIE-LABlab(33.15, 48.03, -60.65)
CIE-LCHlch(33.15, 77.37, 308.38°)
OKLaboklab(44.5% 0.0722 -0.1739)
OKLCHoklch(44.5% 0.188 292.5)
XYZxyz(13.3462, 7.6061, 41.8308)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31B0 #85B031
analogous
#3146B0 #5C31B0 #9C31B0
triadic
#5C31B0 #B05C31 #31B05C
tetradic
#5C31B0 #B03146 #85B031 #31B09C
square
#5C31B0 #B03146 #85B031 #31B09C
split-complementary
#5C31B0 #B09C31 #46B031
monochromatic
#2A1650 #432480 #5C31B0 #7B50CE #9F80DC

Accessibility & contrast

On white

8.33
#5C31B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5C31B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31B0
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31B0#FFFFFF#000000##FFFFFF
##5C31B01.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B4
Deuteranopia (green-blind)
#004BAE
Tritanopia (blue-blind)
#42526D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5c31b0;
/* rgb */ color: rgb(92, 49, 176);
/* oklch */ color: oklch(44.5% 0.188 292.5);
Tailwind
colors: {
  custom: {
    50: '#926dc9',
    500: '#5c31b0',
    950: '#000000',
  },
}
SCSS
$custom: #5c31b0;
$custom-light: #926dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31b0",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 260.315,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44501,
    "c": 0.18828,
    "h": 292.5
  },
  "luminance": 0.07607
}

Semantic roles & 50–950 ramp

primary
#5C31B0
secondary
#ABC578
accent
#E048AC
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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