#5B39CF#5B39CF

#5B39CF is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.2% C 0.216 H 285.4°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5B39CF
RGBrgb(91, 57, 207)
HSLhsl(254, 61%, 52%)
HSVhsv(254, 72%, 81%)
CMYKcmyk(56%, 72.5%, 0%, 18.8%)
CIE-LABlab(37.21, 52.54, -72.21)
CIE-LCHlch(37.21, 89.30, 306.04°)
OKLaboklab(48.19% 0.0572 -0.2078)
OKLCHoklch(48.19% 0.216 285.4)
XYZxyz(17.0366, 9.6544, 59.9852)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39CF #ADCF39
analogous
#3962CF #5B39CF #A639CF
triadic
#5B39CF #CF5B39 #39CF5B
tetradic
#5B39CF #CF3962 #ADCF39 #39CFA6
square
#5B39CF #CF3962 #ADCF39 #39CFA6
split-complementary
#5B39CF #CFA639 #62CF39
monochromatic
#2F1C72 #4428A3 #5B39CF #846ADB #AD9CE7

Accessibility & contrast

On white

7.16
#5B39CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5B39CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B39CF
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39CF#FFFFFF#000000##FFFFFF
##5B39CF1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#236281
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b39cf;
/* rgb */ color: rgb(91, 57, 207);
/* oklch */ color: oklch(48.2% 0.216 285.4);
Tailwind
colors: {
  custom: {
    50: '#9573df',
    500: '#5b39cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b39cf;
$custom-light: #9573df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39cf",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 207
  },
  "hsl": {
    "h": 253.6,
    "s": 60.976,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48191,
    "c": 0.21558,
    "h": 285.4
  },
  "luminance": 0.09655
}

Semantic roles & 50–950 ramp

primary
#5B39CF
secondary
#C4D391
accent
#E444C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B39CF

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

Preview Lab → · Contrast checker → · Palette generator →

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