#5C38B2#5C38B2

#5C38B2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.182 H 290.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5C38B2
RGBrgb(92, 56, 178)
HSLhsl(258, 52%, 46%)
HSVhsv(258, 69%, 70%)
CMYKcmyk(48.3%, 68.5%, 0%, 30.2%)
CIE-LABlab(34.64, 44.93, -59.42)
CIE-LCHlch(34.64, 74.49, 307.09°)
OKLaboklab(45.61% 0.0651 -0.1703)
OKLCHoklch(45.61% 0.182 290.9)
XYZxyz(13.8614, 8.3175, 42.9859)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C38B2 #8EB238
analogous
#3851B2 #5C38B2 #9938B2
triadic
#5C38B2 #B25C38 #38B25C
tetradic
#5C38B2 #B23851 #8EB238 #38B299
square
#5C38B2 #B23851 #8EB238 #38B299
split-complementary
#5C38B2 #B29938 #51B238
monochromatic
#2C1B55 #442983 #5C38B2 #7D5CCC #A28ADA

Accessibility & contrast

On white

7.88
#5C38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5C38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C38B2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C38B2#FFFFFF#000000##FFFFFF
##5C38B21.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#004FB0
Tritanopia (blue-blind)
#405670
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c38b2;
/* rgb */ color: rgb(92, 56, 178);
/* oklch */ color: oklch(45.6% 0.182 290.9);
Tailwind
colors: {
  custom: {
    50: '#9271ca',
    500: '#5c38b2',
    950: '#000000',
  },
}
SCSS
$custom: #5c38b2;
$custom-light: #9271ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5c38b2",
  "rgb": {
    "r": 92,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 257.705,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.45612,
    "c": 0.18232,
    "h": 290.9
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

primary
#5C38B2
secondary
#B1C581
accent
#DC4CB1
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5C38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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