#5C38BD#5C38BD

#5C38BD is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.195 H 288.9°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5C38BD
RGBrgb(92, 56, 189)
HSLhsl(256, 54%, 48%)
HSVhsv(256, 70%, 74%)
CMYKcmyk(51.3%, 70.4%, 0%, 25.9%)
CIE-LABlab(35.55, 48.06, -64.42)
CIE-LCHlch(35.55, 80.37, 306.72°)
OKLaboklab(46.55% 0.0632 -0.185)
OKLCHoklch(46.55% 0.195 288.9)
XYZxyz(15.0104, 8.7771, 49.0375)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C38BD #99BD38
analogous
#3856BD #5C38BD #9F38BD
triadic
#5C38BD #BD5C38 #38BD5C
tetradic
#5C38BD #BD3856 #99BD38 #38BD9F
square
#5C38BD #BD3856 #99BD38 #38BD9F
split-complementary
#5C38BD #BD9F38 #56BD38
monochromatic
#2E1C5F #452A8E #5C38BD #8062D0 #A691DE

Accessibility & contrast

On white

7.62
#5C38BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5C38BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C38BD
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C38BD#FFFFFF#000000##FFFFFF
##5C38BD1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#395B76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5c38bd;
/* rgb */ color: rgb(92, 56, 189);
/* oklch */ color: oklch(46.6% 0.195 288.9);
Tailwind
colors: {
  custom: {
    50: '#9372d2',
    500: '#5c38bd',
    950: '#000000',
  },
}
SCSS
$custom: #5c38bd;
$custom-light: #9372d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5c38bd",
  "rgb": {
    "r": 92,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 256.241,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4655,
    "c": 0.19549,
    "h": 288.9
  },
  "luminance": 0.08778
}

Semantic roles & 50–950 ramp

primary
#5C38BD
secondary
#B7C987
accent
#DE4AB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5C38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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