#5D39C8#5D39C8

#5D39C8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.207 H 287.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5D39C8
RGBrgb(93, 57, 200)
HSLhsl(255, 57%, 50%)
HSVhsv(255, 72%, 78%)
CMYKcmyk(53.5%, 71.5%, 0%, 21.6%)
CIE-LABlab(36.79, 50.83, -68.84)
CIE-LCHlch(36.79, 85.57, 306.44°)
OKLaboklab(47.74% 0.0616 -0.1979)
OKLCHoklch(47.74% 0.207 287.3)
XYZxyz(16.3996, 9.4227, 55.5870)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39C8 #A4C839
analogous
#395CC8 #5D39C8 #A539C8
triadic
#5D39C8 #C85D39 #39C85D
tetradic
#5D39C8 #C8395C #A4C839 #39C8A5
square
#5D39C8 #C8395C #A4C839 #39C8A5
split-complementary
#5D39C8 #C8A539 #5CC839
monochromatic
#301D69 #462B99 #5D39C8 #8469D5 #AB99E3

Accessibility & contrast

On white

7.28
#5D39C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5D39C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D39C8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39C8#FFFFFF#000000##FFFFFF
##5D39C81.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#315F7D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d39c8;
/* rgb */ color: rgb(93, 57, 200);
/* oklch */ color: oklch(47.7% 0.207 287.3);
Tailwind
colors: {
  custom: {
    50: '#9573da',
    500: '#5d39c8',
    950: '#000000',
  },
}
SCSS
$custom: #5d39c8;
$custom-light: #9573da;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39c8",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 200
  },
  "hsl": {
    "h": 255.105,
    "s": 56.522,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47743,
    "c": 0.20727,
    "h": 287.3
  },
  "luminance": 0.09424
}

Semantic roles & 50–950 ramp

primary
#5D39C8
secondary
#BECE8F
accent
#E048BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D39C8

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

Preview Lab → · Contrast checker → · Palette generator →

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