#5F39B7#5F39B7

#5F39B7 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.187 H 291.2°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5F39B7
RGBrgb(95, 57, 183)
HSLhsl(258, 53%, 47%)
HSVhsv(258, 69%, 72%)
CMYKcmyk(48.1%, 68.9%, 0%, 28.2%)
CIE-LABlab(35.55, 46.35, -60.87)
CIE-LCHlch(35.55, 76.51, 307.29°)
OKLaboklab(46.47% 0.0676 -0.1745)
OKLCHoklch(46.47% 0.187 291.2)
XYZxyz(14.7273, 8.7775, 45.7088)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39B7 #91B739
analogous
#3952B7 #5F39B7 #9E39B7
triadic
#5F39B7 #B75F39 #39B75F
tetradic
#5F39B7 #B73952 #91B739 #39B79E
square
#5F39B7 #B73952 #91B739 #39B79E
split-complementary
#5F39B7 #B79E39 #52B739
monochromatic
#2F1C5A #472A88 #5F39B7 #8160CD #A68EDC

Accessibility & contrast

On white

7.62
#5F39B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5F39B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39B7
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39B7#FFFFFF#000000##FFFFFF
##5F39B71.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0051B4
Tritanopia (blue-blind)
#435973
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f39b7;
/* rgb */ color: rgb(95, 57, 183);
/* oklch */ color: oklch(46.5% 0.187 291.2);
Tailwind
colors: {
  custom: {
    50: '#9472ce',
    500: '#5f39b7',
    950: '#000000',
  },
}
SCSS
$custom: #5f39b7;
$custom-light: #9472ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39b7",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 183
  },
  "hsl": {
    "h": 258.095,
    "s": 52.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46469,
    "c": 0.18711,
    "h": 291.2
  },
  "luminance": 0.08778
}

Semantic roles & 50–950 ramp

primary
#5F39B7
secondary
#B3C785
accent
#DC4CB0
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F39B7

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

Preview Lab → · Contrast checker → · Palette generator →

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