#5D38D4#5D38D4

#5D38D4 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.222 H 285.6°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5D38D4
RGBrgb(93, 56, 212)
HSLhsl(254, 64%, 53%)
HSVhsv(254, 74%, 83%)
CMYKcmyk(56.1%, 73.6%, 0%, 16.9%)
CIE-LABlab(37.68, 54.74, -74.33)
CIE-LCHlch(37.68, 92.31, 306.37°)
OKLaboklab(48.7% 0.0597 -0.214)
OKLCHoklch(48.7% 0.222 285.6)
XYZxyz(17.8084, 9.9079, 63.2486)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38D4 #AFD438
analogous
#3861D4 #5D38D4 #AB38D4
triadic
#5D38D4 #D45D38 #38D45D
tetradic
#5D38D4 #D43861 #AFD438 #38D4AB
square
#5D38D4 #D43861 #AFD438 #38D4AB
split-complementary
#5D38D4 #D4AB38 #61D438
monochromatic
#301A78 #4425AA #5D38D4 #866ADF #AF9DEA

Accessibility & contrast

On white

7.04
#5D38D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5D38D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38D4
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38D4#FFFFFF#000000##FFFFFF
##5D38D41.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD9
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#236383
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5d38d4;
/* rgb */ color: rgb(93, 56, 212);
/* oklch */ color: oklch(48.7% 0.222 285.6);
Tailwind
colors: {
  custom: {
    50: '#9773e2',
    500: '#5d38d4',
    950: '#000000',
  },
}
SCSS
$custom: #5d38d4;
$custom-light: #9773e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38d4",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 254.231,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.487,
    "c": 0.22216,
    "h": 285.6
  },
  "luminance": 0.09909
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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