#5C38BB#5C38BB

#5C38BB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.193 H 289.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5C38BB
RGBrgb(92, 56, 187)
HSLhsl(256, 54%, 48%)
HSVhsv(256, 70%, 73%)
CMYKcmyk(50.8%, 70.1%, 0%, 26.7%)
CIE-LABlab(35.38, 47.49, -63.52)
CIE-LCHlch(35.38, 79.31, 306.78°)
OKLaboklab(46.38% 0.0636 -0.1824)
OKLCHoklch(46.38% 0.193 289.2)
XYZxyz(14.7948, 8.6909, 47.9020)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C38BB #97BB38
analogous
#3855BB #5C38BB #9E38BB
triadic
#5C38BB #BB5C38 #38BB5C
tetradic
#5C38BB #BB3855 #97BB38 #38BB9E
square
#5C38BB #BB3855 #97BB38 #38BB9E
split-complementary
#5C38BB #BB9E38 #55BB38
monochromatic
#2E1C5D #452A8C #5C38BB #7F61D0 #A590DE

Accessibility & contrast

On white

7.67
#5C38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5C38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C38BB
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C38BB#FFFFFF#000000##FFFFFF
##5C38BB1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#3A5A75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5c38bb;
/* rgb */ color: rgb(92, 56, 187);
/* oklch */ color: oklch(46.4% 0.193 289.2);
Tailwind
colors: {
  custom: {
    50: '#9372d0',
    500: '#5c38bb',
    950: '#000000',
  },
}
SCSS
$custom: #5c38bb;
$custom-light: #9372d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c38bb",
  "rgb": {
    "r": 92,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 256.489,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46377,
    "c": 0.19311,
    "h": 289.2
  },
  "luminance": 0.08692
}

Semantic roles & 50–950 ramp

primary
#5C38BB
secondary
#B6C886
accent
#DD4BB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5C38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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