#5D38D9#5D38D9

#5D38D9 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.2% C 0.228 H 284.9°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5D38D9
RGBrgb(93, 56, 217)
HSLhsl(254, 68%, 54%)
HSVhsv(254, 74%, 85%)
CMYKcmyk(57.1%, 74.2%, 0%, 14.9%)
CIE-LABlab(38.14, 56.16, -76.45)
CIE-LCHlch(38.14, 94.86, 306.30°)
OKLaboklab(49.16% 0.0585 -0.2202)
OKLCHoklch(49.16% 0.228 284.9)
XYZxyz(18.4489, 10.1641, 66.6219)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38D9 #B4D938
analogous
#3863D9 #5D38D9 #AD38D9
triadic
#5D38D9 #D95D38 #38D95D
tetradic
#5D38D9 #D93863 #B4D938 #38D9AD
square
#5D38D9 #D93863 #B4D938 #38D9AD
split-complementary
#5D38D9 #D9AD38 #63D938
monochromatic
#30187E #4322B2 #5D38D9 #876BE3 #B19FED

Accessibility & contrast

On white

6.92
#5D38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5D38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D38D9
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38D9#FFFFFF#000000##FFFFFF
##5D38D91.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#1A6586
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5d38d9;
/* rgb */ color: rgb(93, 56, 217);
/* oklch */ color: oklch(49.2% 0.228 284.9);
Tailwind
colors: {
  custom: {
    50: '#9873e6',
    500: '#5d38d9',
    950: '#000000',
  },
}
SCSS
$custom: #5d38d9;
$custom-light: #9873e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38d9",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 253.789,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49162,
    "c": 0.22784,
    "h": 284.9
  },
  "luminance": 0.10165
}

Semantic roles & 50–950 ramp

primary
#5D38D9
secondary
#C9D994
accent
#EB3DC3
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5D38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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