#5F39BE#5F39BE

#5F39BE is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.1% C 0.195 H 289.9°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5F39BE
RGBrgb(95, 57, 190)
HSLhsl(257, 54%, 48%)
HSVhsv(257, 70%, 75%)
CMYKcmyk(50%, 70%, 0%, 25.5%)
CIE-LABlab(36.13, 48.32, -64.05)
CIE-LCHlch(36.13, 80.23, 307.03°)
OKLaboklab(47.06% 0.0664 -0.1838)
OKLCHoklch(47.06% 0.195 289.9)
XYZxyz(15.4740, 9.0762, 49.6418)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F39BE #98BE39
analogous
#3955BE #5F39BE #A139BE
triadic
#5F39BE #BE5F39 #39BE5F
tetradic
#5F39BE #BE3955 #98BE39 #39BEA1
square
#5F39BE #BE3955 #98BE39 #39BEA1
split-complementary
#5F39BE #BEA139 #55BE39
monochromatic
#301D60 #472B8F #5F39BE #8364D0 #A893DF

Accessibility & contrast

On white

7.46
#5F39BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5F39BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F39BE
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F39BE#FFFFFF#000000##FFFFFF
##5F39BE1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#3E5B77
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f39be;
/* rgb */ color: rgb(95, 57, 190);
/* oklch */ color: oklch(47.1% 0.195 289.9);
Tailwind
colors: {
  custom: {
    50: '#9572d3',
    500: '#5f39be',
    950: '#000000',
  },
}
SCSS
$custom: #5f39be;
$custom-light: #9572d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f39be",
  "rgb": {
    "r": 95,
    "g": 57,
    "b": 190
  },
  "hsl": {
    "h": 257.143,
    "s": 53.846,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47061,
    "c": 0.19543,
    "h": 289.9
  },
  "luminance": 0.09077
}

Semantic roles & 50–950 ramp

primary
#5F39BE
secondary
#B7CA89
accent
#DD4BB3
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F39BE

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

Preview Lab → · Contrast checker → · Palette generator →

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