#5D39B2#5D39B2

#5D39B2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.9% C 0.181 H 291.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5D39B2
RGBrgb(93, 57, 178)
HSLhsl(258, 51%, 46%)
HSVhsv(258, 68%, 70%)
CMYKcmyk(47.8%, 68%, 0%, 30.2%)
CIE-LABlab(34.94, 44.57, -58.92)
CIE-LCHlch(34.94, 73.88, 307.10°)
OKLaboklab(45.85% 0.0656 -0.1688)
OKLCHoklch(45.85% 0.181 291.2)
XYZxyz(14.0109, 8.4673, 43.0070)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39B2 #8EB239
analogous
#3951B2 #5D39B2 #9939B2
triadic
#5D39B2 #B25D39 #39B25D
tetradic
#5D39B2 #B23951 #8EB239 #39B299
square
#5D39B2 #B23951 #8EB239 #39B299
split-complementary
#5D39B2 #B29939 #51B239
monochromatic
#2D1B55 #452A84 #5D39B2 #7E5DCB #A38BDA

Accessibility & contrast

On white

7.80
#5D39B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5D39B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D39B2
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39B2#FFFFFF#000000##FFFFFF
##5D39B21.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d39b2;
/* rgb */ color: rgb(93, 57, 178);
/* oklch */ color: oklch(45.9% 0.181 291.2);
Tailwind
colors: {
  custom: {
    50: '#9272ca',
    500: '#5d39b2',
    950: '#000000',
  },
}
SCSS
$custom: #5d39b2;
$custom-light: #9272ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39b2",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 257.851,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45853,
    "c": 0.18109,
    "h": 291.2
  },
  "luminance": 0.08468
}

Semantic roles & 50–950 ramp

primary
#5D39B2
secondary
#B1C482
accent
#DB4DB1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5D39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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