#5C38C0#5C38C0

#5C38C0 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.199 H 288.3°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5C38C0
RGBrgb(92, 56, 192)
HSLhsl(256, 55%, 49%)
HSVhsv(256, 71%, 75%)
CMYKcmyk(52.1%, 70.8%, 0%, 24.7%)
CIE-LABlab(35.81, 48.91, -65.76)
CIE-LCHlch(35.81, 81.96, 306.64°)
OKLaboklab(46.81% 0.0626 -0.1889)
OKLCHoklch(46.81% 0.199 288.3)
XYZxyz(15.3394, 8.9087, 50.7702)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C38C0 #9CC038
analogous
#3858C0 #5C38C0 #A038C0
triadic
#5C38C0 #C05C38 #38C05C
tetradic
#5C38C0 #C03858 #9CC038 #38C0A0
square
#5C38C0 #C03858 #9CC038 #38C0A0
split-complementary
#5C38C0 #C0A038 #58C038
monochromatic
#2F1C61 #452A91 #5C38C0 #8164D2 #A793DF

Accessibility & contrast

On white

7.55
#5C38C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5C38C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C38C0
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C38C0#FFFFFF#000000##FFFFFF
##5C38C01.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#365C78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5c38c0;
/* rgb */ color: rgb(92, 56, 192);
/* oklch */ color: oklch(46.8% 0.199 288.3);
Tailwind
colors: {
  custom: {
    50: '#9472d4',
    500: '#5c38c0',
    950: '#000000',
  },
}
SCSS
$custom: #5c38c0;
$custom-light: #9472d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c38c0",
  "rgb": {
    "r": 92,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 255.882,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46812,
    "c": 0.19903,
    "h": 288.3
  },
  "luminance": 0.08909
}

Semantic roles & 50–950 ramp

primary
#5C38C0
secondary
#B9CB89
accent
#DE4AB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5C38C0

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

Preview Lab → · Contrast checker → · Palette generator →

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