#5C31BE#5C31BE

#5C31BE is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.7% C 0.204 H 289.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5C31BE
RGBrgb(92, 49, 190)
HSLhsl(258, 59%, 47%)
HSVhsv(258, 74%, 75%)
CMYKcmyk(51.6%, 74.2%, 0%, 25.5%)
CIE-LABlab(34.37, 51.89, -66.94)
CIE-LCHlch(34.37, 84.70, 307.78°)
OKLaboklab(45.74% 0.0689 -0.1923)
OKLCHoklch(45.74% 0.204 289.7)
XYZxyz(14.8035, 8.1890, 49.5058)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C31BE #93BE31
analogous
#314CBE #5C31BE #A331BE
triadic
#5C31BE #BE5C31 #31BE5C
tetradic
#5C31BE #BE314C #93BE31 #31BEA3
square
#5C31BE #BE314C #93BE31 #31BEA3
split-complementary
#5C31BE #BEA331 #4CBE31
monochromatic
#2D185D #44248D #5C31BE #7E58D4 #A489E1

Accessibility & contrast

On white

7.96
#5C31BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5C31BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C31BE
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C31BE#FFFFFF#000000##FFFFFF
##5C31BE1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C2
Deuteranopia (green-blind)
#004DBB
Tritanopia (blue-blind)
#385775
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c31be;
/* rgb */ color: rgb(92, 49, 190);
/* oklch */ color: oklch(45.7% 0.204 289.7);
Tailwind
colors: {
  custom: {
    50: '#946ed3',
    500: '#5c31be',
    950: '#000000',
  },
}
SCSS
$custom: #5c31be;
$custom-light: #946ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c31be",
  "rgb": {
    "r": 92,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 258.298,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45742,
    "c": 0.20431,
    "h": 289.7
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#5C31BE
secondary
#B4CA80
accent
#E246B2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5C31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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