#5F39BB#5F39BB

#5F39BB is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.192 H 290.4°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5F39BB
RGBrgb(95, 57, 187)
HSLhsl(258, 53%, 48%)
HSVhsv(258, 70%, 73%)
CMYKcmyk(49.2%, 69.5%, 0%, 26.7%)
CIE-LABlab(35.88, 47.47, -62.69)
CIE-LCHlch(35.88, 78.64, 307.13°)
OKLaboklab(46.81% 0.0669 -0.1798)
OKLCHoklch(46.81% 0.192 290.4)
XYZxyz(15.1495, 8.9464, 47.9327)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39BB #95BB39
analogous
#3954BB #5F39BB #A039BB
triadic
#5F39BB #BB5F39 #39BB5F
tetradic
#5F39BB #BB3954 #95BB39 #39BBA0
square
#5F39BB #BB3954 #95BB39 #39BBA0
split-complementary
#5F39BB #BBA039 #54BB39
monochromatic
#2F1C5D #472B8C #5F39BB #8262CF #A791DD

Accessibility & contrast

On white

7.53
#5F39BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F39BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39BB
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39BB#FFFFFF#000000##FFFFFF
##5F39BB1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#405A76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f39bb;
/* rgb */ color: rgb(95, 57, 187);
/* oklch */ color: oklch(46.8% 0.192 290.4);
Tailwind
colors: {
  custom: {
    50: '#9572d0',
    500: '#5f39bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f39bb;
$custom-light: #9572d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39bb",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 257.538,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46806,
    "c": 0.19188,
    "h": 290.4
  },
  "luminance": 0.08947
}

Semantic roles & 50–950 ramp

primary
#5F39BB
secondary
#B5C887
accent
#DD4BB2
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F39BB

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

Preview Lab → · Contrast checker → · Palette generator →

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