#5C31AF#5C31AF

#5C31AF is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.187 H 292.8°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#5C31AF
RGBrgb(92, 49, 175)
HSLhsl(260, 56%, 44%)
HSVhsv(260, 72%, 69%)
CMYKcmyk(47.4%, 72%, 0%, 31.4%)
CIE-LABlab(33.06, 47.76, -60.20)
CIE-LCHlch(33.06, 76.84, 308.43°)
OKLaboklab(44.41% 0.0724 -0.1725)
OKLCHoklch(44.41% 0.187 292.8)
XYZxyz(13.2477, 7.5666, 41.3116)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31AF #84AF31
analogous
#3145AF #5C31AF #9B31AF
triadic
#5C31AF #AF5C31 #31AF5C
tetradic
#5C31AF #AF3145 #84AF31 #31AF9B
square
#5C31AF #AF3145 #84AF31 #31AF9B
split-complementary
#5C31AF #AF9B31 #45AF31
monochromatic
#2A164F #43247F #5C31AF #7B4FCE #9F7FDB

Accessibility & contrast

On white

8.36
#5C31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5C31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31AF
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31AF#FFFFFF#000000##FFFFFF
##5C31AF1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB3
Deuteranopia (green-blind)
#004BAD
Tritanopia (blue-blind)
#43526D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5c31af;
/* rgb */ color: rgb(92, 49, 175);
/* oklch */ color: oklch(44.4% 0.187 292.8);
Tailwind
colors: {
  custom: {
    50: '#926dc8',
    500: '#5c31af',
    950: '#000000',
  },
}
SCSS
$custom: #5c31af;
$custom-light: #926dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31af",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 260.476,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44414,
    "c": 0.18711,
    "h": 292.8
  },
  "luminance": 0.07567
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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