#5F31BF#5F31BF

#5F31BF is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.1% C 0.205 H 290.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5F31BF
RGBrgb(95, 49, 191)
HSLhsl(259, 59%, 47%)
HSVhsv(259, 74%, 75%)
CMYKcmyk(50.3%, 74.3%, 0%, 25.1%)
CIE-LABlab(34.78, 52.62, -66.84)
CIE-LCHlch(34.78, 85.07, 308.21°)
OKLaboklab(46.13% 0.0731 -0.1919)
OKLCHoklch(46.13% 0.205 290.9)
XYZxyz(15.2189, 8.3905, 50.0978)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F31BF #91BF31
analogous
#314ABF #5F31BF #A631BF
triadic
#5F31BF #BF5F31 #31BF5F
tetradic
#5F31BF #BF314A #91BF31 #31BFA6
square
#5F31BF #BF314A #91BF31 #31BFA6
split-complementary
#5F31BF #BFA631 #4ABF31
monochromatic
#2F185E #47258E #5F31BF #8159D4 #A68AE1

Accessibility & contrast

On white

7.84
#5F31BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5F31BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F31BF
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F31BF#FFFFFF#000000##FFFFFF
##5F31BF1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004FBC
Tritanopia (blue-blind)
#3E5876
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f31bf;
/* rgb */ color: rgb(95, 49, 191);
/* oklch */ color: oklch(46.1% 0.205 290.9);
Tailwind
colors: {
  custom: {
    50: '#966ed3',
    500: '#5f31bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f31bf;
$custom-light: #966ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f31bf",
  "rgb": {
    "r": 95,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 259.437,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46133,
    "c": 0.2054,
    "h": 290.9
  },
  "luminance": 0.08391
}

Semantic roles & 50–950 ramp

primary
#5F31BF
secondary
#B3CB81
accent
#E245B0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F31BF

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

Preview Lab → · Contrast checker → · Palette generator →

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