#5D38CB#5D38CB

#5D38CB is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.212 H 286.9°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5D38CB
RGBrgb(93, 56, 203)
HSLhsl(255, 59%, 51%)
HSVhsv(255, 72%, 80%)
CMYKcmyk(54.2%, 72.4%, 0%, 20.4%)
CIE-LABlab(36.87, 52.20, -70.45)
CIE-LCHlch(36.87, 87.68, 306.54°)
OKLaboklab(47.88% 0.0617 -0.2026)
OKLCHoklch(47.88% 0.212 286.9)
XYZxyz(16.7047, 9.4664, 57.4353)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38CB #A6CB38
analogous
#385CCB #5D38CB #A638CB
triadic
#5D38CB #CB5D38 #38CB5D
tetradic
#5D38CB #CB385C #A6CB38 #38CBA6
square
#5D38CB #CB385C #A6CB38 #38CBA6
split-complementary
#5D38CB #CBA638 #5CCB38
monochromatic
#301C6C #46299D #5D38CB #8469D8 #AC99E4

Accessibility & contrast

On white

7.26
#5D38CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5D38CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38CB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38CB#FFFFFF#000000##FFFFFF
##5D38CB1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACF
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#2E607E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d38cb;
/* rgb */ color: rgb(93, 56, 203);
/* oklch */ color: oklch(47.9% 0.212 286.9);
Tailwind
colors: {
  custom: {
    50: '#9672dc',
    500: '#5d38cb',
    950: '#000000',
  },
}
SCSS
$custom: #5d38cb;
$custom-light: #9672dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38cb",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 255.102,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47882,
    "c": 0.21182,
    "h": 286.9
  },
  "luminance": 0.09467
}

Semantic roles & 50–950 ramp

primary
#5D38CB
secondary
#C0D08F
accent
#E246BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5D38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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