#5B31BE#5B31BE

#5B31BE is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.6% C 0.204 H 289.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5B31BE
RGBrgb(91, 49, 190)
HSLhsl(258, 59%, 47%)
HSVhsv(258, 74%, 75%)
CMYKcmyk(52.1%, 74.2%, 0%, 25.5%)
CIE-LABlab(34.27, 51.74, -67.12)
CIE-LCHlch(34.27, 84.74, 307.63°)
OKLaboklab(45.64% 0.0675 -0.1929)
OKLCHoklch(45.64% 0.204 289.3)
XYZxyz(14.7043, 8.1378, 49.5012)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B31BE #94BE31
analogous
#314EBE #5B31BE #A231BE
triadic
#5B31BE #BE5B31 #31BE5B
tetradic
#5B31BE #BE314E #94BE31 #31BEA2
square
#5B31BE #BE314E #94BE31 #31BEA2
split-complementary
#5B31BE #BEA231 #4EBE31
monochromatic
#2C185D #44248D #5B31BE #7D58D4 #A389E1

Accessibility & contrast

On white

7.99
#5B31BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5B31BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B31BE
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B31BE#FFFFFF#000000##FFFFFF
##5B31BE1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b31be;
/* rgb */ color: rgb(91, 49, 190);
/* oklch */ color: oklch(45.6% 0.204 289.3);
Tailwind
colors: {
  custom: {
    50: '#936dd3',
    500: '#5b31be',
    950: '#000000',
  },
}
SCSS
$custom: #5b31be;
$custom-light: #936dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b31be",
  "rgb": {
    "r": 91,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 257.872,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45644,
    "c": 0.20434,
    "h": 289.3
  },
  "luminance": 0.08138
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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