#5F31BD#5F31BD

#5F31BD is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.0% C 0.203 H 291.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5F31BD
RGBrgb(95, 49, 189)
HSLhsl(260, 59%, 47%)
HSVhsv(260, 74%, 74%)
CMYKcmyk(49.7%, 74.1%, 0%, 25.9%)
CIE-LABlab(34.61, 52.07, -65.96)
CIE-LCHlch(34.61, 84.03, 308.29°)
OKLaboklab(45.95% 0.0736 -0.1893)
OKLCHoklch(45.95% 0.203 291.2)
XYZxyz(15.0003, 8.3031, 48.9465)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F31BD #8FBD31
analogous
#3149BD #5F31BD #A531BD
triadic
#5F31BD #BD5F31 #31BD5F
tetradic
#5F31BD #BD3149 #8FBD31 #31BDA5
square
#5F31BD #BD3149 #8FBD31 #31BDA5
split-complementary
#5F31BD #BDA531 #49BD31
monochromatic
#2E185C #47248C #5F31BD #8058D4 #A588E0

Accessibility & contrast

On white

7.89
#5F31BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5F31BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F31BD
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F31BD#FFFFFF#000000##FFFFFF
##5F31BD1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#3F5775
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f31bd;
/* rgb */ color: rgb(95, 49, 189);
/* oklch */ color: oklch(46.0% 0.203 291.2);
Tailwind
colors: {
  custom: {
    50: '#956ed2',
    500: '#5f31bd',
    950: '#000000',
  },
}
SCSS
$custom: #5f31bd;
$custom-light: #956ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f31bd",
  "rgb": {
    "r": 95,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 259.714,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45954,
    "c": 0.20315,
    "h": 291.2
  },
  "luminance": 0.08304
}

Semantic roles & 50–950 ramp

primary
#5F31BD
secondary
#B2CA80
accent
#E246AF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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