#5F39B4#5F39B4

#5F39B4 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.2% C 0.184 H 291.8°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5F39B4
RGBrgb(95, 57, 180)
HSLhsl(259, 52%, 46%)
HSVhsv(259, 68%, 71%)
CMYKcmyk(47.2%, 68.3%, 0%, 29.4%)
CIE-LABlab(35.31, 45.50, -59.49)
CIE-LCHlch(35.31, 74.90, 307.41°)
OKLaboklab(46.22% 0.0681 -0.1704)
OKLCHoklch(46.22% 0.184 291.8)
XYZxyz(14.4184, 8.6539, 44.0819)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39B4 #8EB439
analogous
#3950B4 #5F39B4 #9D39B4
triadic
#5F39B4 #B45F39 #39B45F
tetradic
#5F39B4 #B43950 #8EB439 #39B49D
square
#5F39B4 #B43950 #8EB439 #39B49D
split-complementary
#5F39B4 #B49D39 #50B439
monochromatic
#2E1C57 #462A86 #5F39B4 #805ECC #A58DDB

Accessibility & contrast

On white

7.69
#5F39B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5F39B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39B4
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39B4#FFFFFF#000000##FFFFFF
##5F39B41.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#455872
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f39b4;
/* rgb */ color: rgb(95, 57, 180);
/* oklch */ color: oklch(46.2% 0.184 291.8);
Tailwind
colors: {
  custom: {
    50: '#9472cb',
    500: '#5f39b4',
    950: '#000000',
  },
}
SCSS
$custom: #5f39b4;
$custom-light: #9472cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39b4",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 180
  },
  "hsl": {
    "h": 258.537,
    "s": 51.899,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46219,
    "c": 0.18352,
    "h": 291.8
  },
  "luminance": 0.08654
}

Semantic roles & 50–950 ramp

primary
#5F39B4
secondary
#B1C583
accent
#DB4CAF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F39B4

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

Preview Lab → · Contrast checker → · Palette generator →

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