#5D38CD#5D38CD

#5D38CD is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.214 H 286.6°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5D38CD
RGBrgb(93, 56, 205)
HSLhsl(255, 60%, 51%)
HSVhsv(255, 73%, 80%)
CMYKcmyk(54.6%, 72.7%, 0%, 19.6%)
CIE-LABlab(37.05, 52.76, -71.32)
CIE-LCHlch(37.05, 88.71, 306.50°)
OKLaboklab(48.06% 0.0613 -0.2052)
OKLCHoklch(48.06% 0.214 286.6)
XYZxyz(16.9445, 9.5624, 58.6986)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38CD #A8CD38
analogous
#385DCD #5D38CD #A738CD
triadic
#5D38CD #CD5D38 #38CD5D
tetradic
#5D38CD #CD385D #A8CD38 #38CDA7
square
#5D38CD #CD385D #A8CD38 #38CDA7
split-complementary
#5D38CD #CDA738 #5DCD38
monochromatic
#301C6F #4628A0 #5D38CD #8569D9 #AD9AE6

Accessibility & contrast

On white

7.21
#5D38CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5D38CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38CD
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38CD#FFFFFF#000000##FFFFFF
##5D38CD1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#2C617F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d38cd;
/* rgb */ color: rgb(93, 56, 205);
/* oklch */ color: oklch(48.1% 0.214 286.6);
Tailwind
colors: {
  custom: {
    50: '#9672dd',
    500: '#5d38cd',
    950: '#000000',
  },
}
SCSS
$custom: #5d38cd;
$custom-light: #9672dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38cd",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 254.899,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48062,
    "c": 0.21413,
    "h": 286.6
  },
  "luminance": 0.09563
}

Semantic roles & 50–950 ramp

primary
#5D38CD
secondary
#C1D18F
accent
#E345BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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