#5F39B3#5F39B3

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

Color values

HEX#5F39B3
RGBrgb(95, 57, 179)
HSLhsl(259, 52%, 46%)
HSVhsv(259, 68%, 70%)
CMYKcmyk(46.9%, 68.2%, 0%, 29.8%)
CIE-LABlab(35.23, 45.22, -59.03)
CIE-LCHlch(35.23, 74.36, 307.46°)
OKLaboklab(46.14% 0.0683 -0.169)
OKLCHoklch(46.14% 0.182 292)
XYZxyz(14.3169, 8.6133, 43.5473)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39B3 #8DB339
analogous
#3950B3 #5F39B3 #9C39B3
triadic
#5F39B3 #B35F39 #39B35F
tetradic
#5F39B3 #B33950 #8DB339 #39B39C
square
#5F39B3 #B33950 #8DB339 #39B39C
split-complementary
#5F39B3 #B39C39 #50B339
monochromatic
#2E1B56 #462A85 #5F39B3 #805ECC #A48CDA

Accessibility & contrast

On white

7.71
#5F39B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F39B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39B3
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39B3#FFFFFF#000000##FFFFFF
##5F39B31.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#455771
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f39b3;
/* rgb */ color: rgb(95, 57, 179);
/* oklch */ color: oklch(46.1% 0.182 292.0);
Tailwind
colors: {
  custom: {
    50: '#9472cb',
    500: '#5f39b3',
    950: '#000000',
  },
}
SCSS
$custom: #5f39b3;
$custom-light: #9472cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39b3",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 258.689,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46136,
    "c": 0.18231,
    "h": 292
  },
  "luminance": 0.08614
}

Semantic roles & 50–950 ramp

primary
#5F39B3
secondary
#B0C583
accent
#DB4DAF
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F39B3

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

Preview Lab → · Contrast checker → · Palette generator →

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