#5D38C2#5D38C2

#5D38C2 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.1% C 0.201 H 288.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#5D38C2
RGBrgb(93, 56, 194)
HSLhsl(256, 55%, 49%)
HSVhsv(256, 71%, 76%)
CMYKcmyk(52.1%, 71.1%, 0%, 23.9%)
CIE-LABlab(36.08, 49.64, -66.49)
CIE-LCHlch(36.08, 82.98, 306.75°)
OKLaboklab(47.08% 0.0637 -0.191)
OKLCHoklch(47.08% 0.201 288.4)
XYZxyz(15.6631, 9.0498, 51.9499)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38C2 #9DC238
analogous
#3858C2 #5D38C2 #A238C2
triadic
#5D38C2 #C25D38 #38C25D
tetradic
#5D38C2 #C23858 #9DC238 #38C2A2
square
#5D38C2 #C23858 #9DC238 #38C2A2
split-complementary
#5D38C2 #C2A238 #58C238
monochromatic
#2F1D63 #462A93 #5D38C2 #8265D2 #A994E0

Accessibility & contrast

On white

7.47
#5D38C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#5D38C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38C2
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38C2#FFFFFF#000000##FFFFFF
##5D38C21.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#375C79
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5d38c2;
/* rgb */ color: rgb(93, 56, 194);
/* oklch */ color: oklch(47.1% 0.201 288.4);
Tailwind
colors: {
  custom: {
    50: '#9572d6',
    500: '#5d38c2',
    950: '#000000',
  },
}
SCSS
$custom: #5d38c2;
$custom-light: #9572d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38c2",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 256.087,
    "s": 55.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.47082,
    "c": 0.20135,
    "h": 288.4
  },
  "luminance": 0.09051
}

Semantic roles & 50–950 ramp

primary
#5D38C2
secondary
#BACB8A
accent
#DF49B7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5D38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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