#5D38CA#5D38CA

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

Color values

HEX#5D38CA
RGBrgb(93, 56, 202)
HSLhsl(255, 58%, 51%)
HSVhsv(255, 72%, 79%)
CMYKcmyk(54%, 72.3%, 0%, 20.8%)
CIE-LABlab(36.78, 51.91, -70.01)
CIE-LCHlch(36.78, 87.16, 306.56°)
OKLaboklab(47.79% 0.062 -0.2013)
OKLCHoklch(47.79% 0.211 287.1)
XYZxyz(16.5859, 9.4189, 56.8097)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38CA #A5CA38
analogous
#385CCA #5D38CA #A638CA
triadic
#5D38CA #CA5D38 #38CA5D
tetradic
#5D38CA #CA385C #A5CA38 #38CAA6
square
#5D38CA #CA385C #A5CA38 #38CAA6
split-complementary
#5D38CA #CAA638 #5CCA38
monochromatic
#301D6B #46299B #5D38CA #8468D7 #AC99E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D38CA#FFFFFF#000000##FFFFFF
##5D38CA1.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)
#005ACE
Deuteranopia (green-blind)
#0052C7
Tritanopia (blue-blind)
#2F5F7E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d38ca;
/* rgb */ color: rgb(93, 56, 202);
/* oklch */ color: oklch(47.8% 0.211 287.1);
Tailwind
colors: {
  custom: {
    50: '#9672db',
    500: '#5d38ca',
    950: '#000000',
  },
}
SCSS
$custom: #5d38ca;
$custom-light: #9672db;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38ca",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 255.205,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47792,
    "c": 0.21067,
    "h": 287.1
  },
  "luminance": 0.0942
}

Semantic roles & 50–950 ramp

primary
#5D38CA
secondary
#BFCF8E
accent
#E147BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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