#5C38CD#5C38CD

#5C38CD is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.214 H 286.2°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5C38CD
RGBrgb(92, 56, 205)
HSLhsl(254, 60%, 51%)
HSVhsv(254, 73%, 80%)
CMYKcmyk(55.1%, 72.7%, 0%, 19.6%)
CIE-LABlab(36.95, 52.62, -71.48)
CIE-LCHlch(36.95, 88.76, 306.36°)
OKLaboklab(47.97% 0.0599 -0.2057)
OKLCHoklch(47.97% 0.214 286.2)
XYZxyz(16.8439, 9.5105, 58.6939)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C38CD #A9CD38
analogous
#385ECD #5C38CD #A638CD
triadic
#5C38CD #CD5C38 #38CD5C
tetradic
#5C38CD #CD385E #A9CD38 #38CDA6
square
#5C38CD #CD385E #A9CD38 #38CDA6
split-complementary
#5C38CD #CDA638 #5ECD38
monochromatic
#301C6F #4528A0 #5C38CD #8469D9 #AC9AE6

Accessibility & contrast

On white

7.24
#5C38CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5C38CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C38CD
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C38CD#FFFFFF#000000##FFFFFF
##5C38CD1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#29617F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5c38cd;
/* rgb */ color: rgb(92, 56, 205);
/* oklch */ color: oklch(48.0% 0.214 286.2);
Tailwind
colors: {
  custom: {
    50: '#9672dd',
    500: '#5c38cd',
    950: '#000000',
  },
}
SCSS
$custom: #5c38cd;
$custom-light: #9672dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c38cd",
  "rgb": {
    "r": 92,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 254.497,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47971,
    "c": 0.2142,
    "h": 286.2
  },
  "luminance": 0.09511
}

Semantic roles & 50–950 ramp

primary
#5C38CD
secondary
#C1D18F
accent
#E345BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5C38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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