#5F39B1#5F39B1

#5F39B1 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.180 H 292.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5F39B1
RGBrgb(95, 57, 177)
HSLhsl(259, 51%, 46%)
HSVhsv(259, 68%, 69%)
CMYKcmyk(46.3%, 67.8%, 0%, 30.6%)
CIE-LABlab(35.07, 44.66, -58.10)
CIE-LCHlch(35.07, 73.28, 307.55°)
OKLaboklab(45.97% 0.0686 -0.1663)
OKLCHoklch(45.97% 0.18 292.4)
XYZxyz(14.1161, 8.5330, 42.4897)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39B1 #8BB139
analogous
#394FB1 #5F39B1 #9B39B1
triadic
#5F39B1 #B15F39 #39B15F
tetradic
#5F39B1 #B1394F #8BB139 #39B19B
square
#5F39B1 #B1394F #8BB139 #39B19B
split-complementary
#5F39B1 #B19B39 #4FB139
monochromatic
#2D1B54 #462A83 #5F39B1 #7F5DCB #A48BDA

Accessibility & contrast

On white

7.76
#5F39B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5F39B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39B1
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39B1#FFFFFF#000000##FFFFFF
##5F39B11.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#0050AF
Tritanopia (blue-blind)
#465670
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f39b1;
/* rgb */ color: rgb(95, 57, 177);
/* oklch */ color: oklch(46.0% 0.180 292.4);
Tailwind
colors: {
  custom: {
    50: '#9372c9',
    500: '#5f39b1',
    950: '#000000',
  },
}
SCSS
$custom: #5f39b1;
$custom-light: #9372c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39b1",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 177
  },
  "hsl": {
    "h": 259,
    "s": 51.282,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45972,
    "c": 0.17991,
    "h": 292.4
  },
  "luminance": 0.08533
}

Semantic roles & 50–950 ramp

primary
#5F39B1
secondary
#AFC482
accent
#DB4DAE
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F39B1

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

Preview Lab → · Contrast checker → · Palette generator →

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