#5D31BE#5D31BE

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

Color values

HEX#5D31BE
RGBrgb(93, 49, 190)
HSLhsl(259, 59%, 47%)
HSVhsv(259, 74%, 75%)
CMYKcmyk(51.1%, 74.2%, 0%, 25.5%)
CIE-LABlab(34.48, 52.04, -66.76)
CIE-LCHlch(34.48, 84.65, 307.94°)
OKLaboklab(45.84% 0.0704 -0.1918)
OKLCHoklch(45.84% 0.204 290.2)
XYZxyz(14.9041, 8.2409, 49.5105)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D31BE #92BE31
analogous
#314CBE #5D31BE #A431BE
triadic
#5D31BE #BE5D31 #31BE5D
tetradic
#5D31BE #BE314C #92BE31 #31BEA4
square
#5D31BE #BE314C #92BE31 #31BEA4
split-complementary
#5D31BE #BEA431 #4CBE31
monochromatic
#2D185D #45248D #5D31BE #7F58D4 #A489E1

Accessibility & contrast

On white

7.93
#5D31BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5D31BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D31BE
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D31BE#FFFFFF#000000##FFFFFF
##5D31BE1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C2
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#3A5775
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d31be;
/* rgb */ color: rgb(93, 49, 190);
/* oklch */ color: oklch(45.8% 0.204 290.2);
Tailwind
colors: {
  custom: {
    50: '#946ed3',
    500: '#5d31be',
    950: '#000000',
  },
}
SCSS
$custom: #5d31be;
$custom-light: #946ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d31be",
  "rgb": {
    "r": 93,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 258.723,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45842,
    "c": 0.2043,
    "h": 290.2
  },
  "luminance": 0.08241
}

Semantic roles & 50–950 ramp

primary
#5D31BE
secondary
#B3CA80
accent
#E246B1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5D31BE

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

Preview Lab → · Contrast checker → · Palette generator →

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