#5F39BA#5F39BA

#5F39BA is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.7% C 0.191 H 290.6°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5F39BA
RGBrgb(95, 57, 186)
HSLhsl(258, 53%, 48%)
HSVhsv(258, 69%, 73%)
CMYKcmyk(48.9%, 69.4%, 0%, 27.1%)
CIE-LABlab(35.80, 47.19, -62.24)
CIE-LCHlch(35.80, 78.11, 307.17°)
OKLaboklab(46.72% 0.0671 -0.1785)
OKLCHoklch(46.72% 0.191 290.6)
XYZxyz(15.0428, 8.9037, 47.3708)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39BA #94BA39
analogous
#3954BA #5F39BA #9F39BA
triadic
#5F39BA #BA5F39 #39BA5F
tetradic
#5F39BA #BA3954 #94BA39 #39BA9F
square
#5F39BA #BA3954 #94BA39 #39BA9F
split-complementary
#5F39BA #BA9F39 #54BA39
monochromatic
#2F1C5C #472B8B #5F39BA #8261CF #A790DD

Accessibility & contrast

On white

7.55
#5F39BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5F39BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39BA
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39BA#FFFFFF#000000##FFFFFF
##5F39BA1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#0051B7
Tritanopia (blue-blind)
#415A75
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f39ba;
/* rgb */ color: rgb(95, 57, 186);
/* oklch */ color: oklch(46.7% 0.191 290.6);
Tailwind
colors: {
  custom: {
    50: '#9572d0',
    500: '#5f39ba',
    950: '#000000',
  },
}
SCSS
$custom: #5f39ba;
$custom-light: #9572d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39ba",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 257.674,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46721,
    "c": 0.19069,
    "h": 290.6
  },
  "luminance": 0.08904
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F39BA

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

Preview Lab → · Contrast checker → · Palette generator →

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