#5D38C8#5D38C8

#5D38C8 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.6% C 0.208 H 287.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5D38C8
RGBrgb(93, 56, 200)
HSLhsl(255, 57%, 50%)
HSVhsv(255, 72%, 78%)
CMYKcmyk(53.5%, 72%, 0%, 21.6%)
CIE-LABlab(36.60, 51.35, -69.14)
CIE-LCHlch(36.60, 86.12, 306.60°)
OKLaboklab(47.61% 0.0624 -0.1988)
OKLCHoklch(47.61% 0.208 287.4)
XYZxyz(16.3506, 9.3248, 55.5707)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38C8 #A3C838
analogous
#385BC8 #5D38C8 #A538C8
triadic
#5D38C8 #C85D38 #38C85D
tetradic
#5D38C8 #C8385B #A3C838 #38C8A5
square
#5D38C8 #C8385B #A3C838 #38C8A5
split-complementary
#5D38C8 #C8A538 #5BC838
monochromatic
#301D69 #472A99 #5D38C8 #8468D5 #AB98E3

Accessibility & contrast

On white

7.33
#5D38C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5D38C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38C8
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38C8#FFFFFF#000000##FFFFFF
##5D38C81.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#315F7D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d38c8;
/* rgb */ color: rgb(93, 56, 200);
/* oklch */ color: oklch(47.6% 0.208 287.4);
Tailwind
colors: {
  custom: {
    50: '#9572da',
    500: '#5d38c8',
    950: '#000000',
  },
}
SCSS
$custom: #5d38c8;
$custom-light: #9572da;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38c8",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 255.417,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47613,
    "c": 0.20834,
    "h": 287.4
  },
  "luminance": 0.09326
}

Semantic roles & 50–950 ramp

primary
#5D38C8
secondary
#BECE8E
accent
#E048B9
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5D38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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