#5D39CA#5D39CA

#5D39CA is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.210 H 287.0°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5D39CA
RGBrgb(93, 57, 202)
HSLhsl(255, 58%, 51%)
HSVhsv(255, 72%, 79%)
CMYKcmyk(54%, 71.8%, 0%, 20.8%)
CIE-LABlab(36.96, 51.40, -69.71)
CIE-LCHlch(36.96, 86.61, 306.40°)
OKLaboklab(47.92% 0.0612 -0.2005)
OKLCHoklch(47.92% 0.21 287)
XYZxyz(16.6348, 9.5168, 56.8261)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D39CA #A6CA39
analogous
#395DCA #5D39CA #A639CA
triadic
#5D39CA #CA5D39 #39CA5D
tetradic
#5D39CA #CA395D #A6CA39 #39CAA6
square
#5D39CA #CA395D #A6CA39 #39CAA6
split-complementary
#5D39CA #CAA639 #5DCA39
monochromatic
#301D6C #462A9C #5D39CA #8469D7 #AC9AE4

Accessibility & contrast

On white

7.23
#5D39CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5D39CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D39CA
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D39CA#FFFFFF#000000##FFFFFF
##5D39CA1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#2F607E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d39ca;
/* rgb */ color: rgb(93, 57, 202);
/* oklch */ color: oklch(47.9% 0.210 287.0);
Tailwind
colors: {
  custom: {
    50: '#9673db',
    500: '#5d39ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d39ca;
$custom-light: #9673db;
$custom-dark: #000000;
JSON
{
  "hex": "#5d39ca",
  "rgb": {
    "r": 93,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 254.897,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47921,
    "c": 0.2096,
    "h": 287
  },
  "luminance": 0.09518
}

Semantic roles & 50–950 ramp

primary
#5D39CA
secondary
#C0D08F
accent
#E147BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D39CA

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

Preview Lab → · Contrast checker → · Palette generator →

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