#5F31D0#5F31D0

#5F31D0 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.224 H 287.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5F31D0
RGBrgb(95, 49, 208)
HSLhsl(257, 63%, 50%)
HSVhsv(257, 76%, 82%)
CMYKcmyk(54.3%, 76.4%, 0%, 18.4%)
CIE-LABlab(36.33, 57.23, -74.22)
CIE-LCHlch(36.33, 93.72, 307.64°)
OKLaboklab(47.69% 0.0686 -0.2135)
OKLCHoklch(47.69% 0.224 287.8)
XYZxyz(17.1994, 9.1827, 60.5284)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F31D0 #A2D031
analogous
#3153D0 #5F31D0 #AE31D0
triadic
#5F31D0 #D05F31 #31D05F
tetradic
#5F31D0 #D03153 #A2D031 #31D0AE
square
#5F31D0 #D03153 #A2D031 #31D0AE
split-complementary
#5F31D0 #D0AE31 #53D031
monochromatic
#31196E #48249F #5F31D0 #8663DB #AC95E7

Accessibility & contrast

On white

7.40
#5F31D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5F31D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F31D0
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F31D0#FFFFFF#000000##FFFFFF
##5F31D01.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D4
Deuteranopia (green-blind)
#0051CD
Tritanopia (blue-blind)
#2F5E7F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f31d0;
/* rgb */ color: rgb(95, 49, 208);
/* oklch */ color: oklch(47.7% 0.224 287.8);
Tailwind
colors: {
  custom: {
    50: '#986fe0',
    500: '#5f31d0',
    950: '#000000',
  },
}
SCSS
$custom: #5f31d0;
$custom-light: #986fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f31d0",
  "rgb": {
    "r": 95,
    "g": 49,
    "b": 208
  },
  "hsl": {
    "h": 257.358,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47692,
    "c": 0.22431,
    "h": 287.8
  },
  "luminance": 0.09184
}

Semantic roles & 50–950 ramp

primary
#5F31D0
secondary
#BDD28B
accent
#E642B6
background
#FAF6FD
surface
#F3ECFB
border
#CDC7D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F31D0

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

Preview Lab → · Contrast checker → · Palette generator →

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