#5C31B2#5C31B2

#5C31B2 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.7% C 0.191 H 292.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#5C31B2
RGBrgb(92, 49, 178)
HSLhsl(260, 57%, 45%)
HSVhsv(260, 72%, 70%)
CMYKcmyk(48.3%, 72.5%, 0%, 30.2%)
CIE-LABlab(33.32, 48.58, -61.56)
CIE-LCHlch(33.32, 78.43, 308.28°)
OKLaboklab(44.68% 0.0717 -0.1766)
OKLCHoklch(44.68% 0.191 292.1)
XYZxyz(13.5456, 7.6858, 42.8806)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31B2 #87B231
analogous
#3147B2 #5C31B2 #9D31B2
triadic
#5C31B2 #B25C31 #31B25C
tetradic
#5C31B2 #B23147 #87B231 #31B29D
square
#5C31B2 #B23147 #87B231 #31B29D
split-complementary
#5C31B2 #B29D31 #47B231
monochromatic
#2A1752 #432482 #5C31B2 #7B51CF #9F81DC

Accessibility & contrast

On white

8.28
#5C31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5C31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31B2
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31B2#FFFFFF#000000##FFFFFF
##5C31B21.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004CAF
Tritanopia (blue-blind)
#41536E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5c31b2;
/* rgb */ color: rgb(92, 49, 178);
/* oklch */ color: oklch(44.7% 0.191 292.1);
Tailwind
colors: {
  custom: {
    50: '#926dca',
    500: '#5c31b2',
    950: '#000000',
  },
}
SCSS
$custom: #5c31b2;
$custom-light: #926dca;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31b2",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 260,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44675,
    "c": 0.19058,
    "h": 292.1
  },
  "luminance": 0.07686
}

Semantic roles & 50–950 ramp

primary
#5C31B2
secondary
#ACC579
accent
#E048AD
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5C31B2

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

Preview Lab → · Contrast checker → · Palette generator →

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