#5F39B2#5F39B2

#5F39B2 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.1% C 0.181 H 292.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5F39B2
RGBrgb(95, 57, 178)
HSLhsl(259, 51%, 46%)
HSVhsv(259, 68%, 70%)
CMYKcmyk(46.6%, 68%, 0%, 30.2%)
CIE-LABlab(35.15, 44.94, -58.57)
CIE-LCHlch(35.15, 73.82, 307.50°)
OKLaboklab(46.05% 0.0684 -0.1677)
OKLCHoklch(46.05% 0.181 292.2)
XYZxyz(14.2161, 8.5730, 43.0166)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39B2 #8CB239
analogous
#394FB2 #5F39B2 #9B39B2
triadic
#5F39B2 #B25F39 #39B25F
tetradic
#5F39B2 #B2394F #8CB239 #39B29B
square
#5F39B2 #B2394F #8CB239 #39B29B
split-complementary
#5F39B2 #B29B39 #4FB239
monochromatic
#2E1B55 #462A84 #5F39B2 #805DCB #A48BDA

Accessibility & contrast

On white

7.74
#5F39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F39B2
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39B2#FFFFFF#000000##FFFFFF
##5F39B21.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#465771
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f39b2;
/* rgb */ color: rgb(95, 57, 178);
/* oklch */ color: oklch(46.1% 0.181 292.2);
Tailwind
colors: {
  custom: {
    50: '#9372ca',
    500: '#5f39b2',
    950: '#000000',
  },
}
SCSS
$custom: #5f39b2;
$custom-light: #9372ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39b2",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 258.843,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46054,
    "c": 0.18111,
    "h": 292.2
  },
  "luminance": 0.08574
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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