#5C31A2#5C31A2

#5C31A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.172 H 295.8°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#5C31A2
RGBrgb(92, 49, 162)
HSLhsl(263, 54%, 41%)
HSVhsv(263, 70%, 64%)
CMYKcmyk(43.2%, 69.8%, 0%, 36.5%)
CIE-LABlab(31.99, 44.20, -54.14)
CIE-LCHlch(31.99, 69.90, 309.23°)
OKLaboklab(43.32% 0.0748 -0.1548)
OKLCHoklch(43.32% 0.172 295.8)
XYZxyz(12.0318, 7.0803, 34.9081)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31A2 #77A231
analogous
#313FA2 #5C31A2 #9531A2
triadic
#5C31A2 #A25C31 #31A25C
tetradic
#5C31A2 #A2313F #77A231 #31A295
square
#5C31A2 #A2313F #77A231 #31A295
split-complementary
#5C31A2 #A29531 #3FA231
monochromatic
#271544 #412373 #5C31A2 #7948C8 #9B77D6

Accessibility & contrast

On white

8.69
#5C31A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5C31A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31A2
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31A2#FFFFFF#000000##FFFFFF
##5C31A21.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#494D66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5c31a2;
/* rgb */ color: rgb(92, 49, 162);
/* oklch */ color: oklch(43.3% 0.172 295.8);
Tailwind
colors: {
  custom: {
    50: '#906cbe',
    500: '#5c31a2',
    950: '#000000',
  },
}
SCSS
$custom: #5c31a2;
$custom-light: #906cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31a2",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 262.832,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43315,
    "c": 0.17192,
    "h": 295.8
  },
  "luminance": 0.07081
}

Semantic roles & 50–950 ramp

primary
#5C31A2
secondary
#A1BE71
accent
#DD4BA5
background
#F9F6FB
surface
#F2ECF7
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C31A2

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

Preview Lab → · Contrast checker → · Palette generator →

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