#5C38CF#5C38CF

#5C38CF is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.217 H 285.9°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5C38CF
RGBrgb(92, 56, 207)
HSLhsl(254, 61%, 52%)
HSVhsv(254, 73%, 81%)
CMYKcmyk(55.6%, 72.9%, 0%, 18.8%)
CIE-LABlab(37.13, 53.19, -72.34)
CIE-LCHlch(37.13, 89.79, 306.32°)
OKLaboklab(48.15% 0.0594 -0.2082)
OKLCHoklch(48.15% 0.217 285.9)
XYZxyz(17.0869, 9.6077, 59.9735)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C38CF #ABCF38
analogous
#3860CF #5C38CF #A838CF
triadic
#5C38CF #CF5C38 #38CF5C
tetradic
#5C38CF #CF3860 #ABCF38 #38CFA8
square
#5C38CF #CF3860 #ABCF38 #38CFA8
split-complementary
#5C38CF #CFA838 #60CF38
monochromatic
#301B71 #4527A3 #5C38CF #8469DB #AD9BE7

Accessibility & contrast

On white

7.19
#5C38CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5C38CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C38CF
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C38CF#FFFFFF#000000##FFFFFF
##5C38CF1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#266180
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5c38cf;
/* rgb */ color: rgb(92, 56, 207);
/* oklch */ color: oklch(48.2% 0.217 285.9);
Tailwind
colors: {
  custom: {
    50: '#9672df',
    500: '#5c38cf',
    950: '#000000',
  },
}
SCSS
$custom: #5c38cf;
$custom-light: #9672df;
$custom-dark: #000000;
JSON
{
  "hex": "#5c38cf",
  "rgb": {
    "r": 92,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 254.305,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48153,
    "c": 0.21652,
    "h": 285.9
  },
  "luminance": 0.09609
}

Semantic roles & 50–950 ramp

primary
#5C38CF
secondary
#C3D390
accent
#E444BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5C38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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