#5D38D5#5D38D5

#5D38D5 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.8% C 0.223 H 285.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5D38D5
RGBrgb(93, 56, 213)
HSLhsl(254, 65%, 53%)
HSVhsv(254, 74%, 84%)
CMYKcmyk(56.3%, 73.7%, 0%, 16.5%)
CIE-LABlab(37.77, 55.03, -74.76)
CIE-LCHlch(37.77, 92.83, 306.36°)
OKLaboklab(48.79% 0.0594 -0.2152)
OKLCHoklch(48.79% 0.223 285.4)
XYZxyz(17.9350, 9.9585, 63.9150)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38D5 #B0D538
analogous
#3862D5 #5D38D5 #AB38D5
triadic
#5D38D5 #D55D38 #38D55D
tetradic
#5D38D5 #D53862 #B0D538 #38D5AB
square
#5D38D5 #D53862 #B0D538 #38D5AB
split-complementary
#5D38D5 #D5AB38 #62D538
monochromatic
#301A79 #4424AC #5D38D5 #866BE0 #AF9DEA

Accessibility & contrast

On white

7.02
#5D38D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5D38D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38D5
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38D5#FFFFFF#000000##FFFFFF
##5D38D51.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDA
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#216484
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d38d5;
/* rgb */ color: rgb(93, 56, 213);
/* oklch */ color: oklch(48.8% 0.223 285.4);
Tailwind
colors: {
  custom: {
    50: '#9773e3',
    500: '#5d38d5',
    950: '#000000',
  },
}
SCSS
$custom: #5d38d5;
$custom-light: #9773e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38d5",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 254.14,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48792,
    "c": 0.2233,
    "h": 285.4
  },
  "luminance": 0.0996
}

Semantic roles & 50–950 ramp

primary
#5D38D5
secondary
#C6D692
accent
#E840C0
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5D38D5

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

Preview Lab → · Contrast checker → · Palette generator →

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