#5C38AE#5C38AE

#5C38AE is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.3% C 0.177 H 291.7°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#5C38AE
RGBrgb(92, 56, 174)
HSLhsl(258, 51%, 45%)
HSVhsv(258, 68%, 68%)
CMYKcmyk(47.1%, 67.8%, 0%, 31.8%)
CIE-LABlab(34.31, 43.79, -57.56)
CIE-LCHlch(34.31, 72.33, 307.26°)
OKLaboklab(45.28% 0.0658 -0.1648)
OKLCHoklch(45.28% 0.177 291.7)
XYZxyz(13.4657, 8.1592, 40.9016)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C38AE #8AAE38
analogous
#384FAE #5C38AE #9738AE
triadic
#5C38AE #AE5C38 #38AE5C
tetradic
#5C38AE #AE384F #8AAE38 #38AE97
square
#5C38AE #AE384F #8AAE38 #38AE97
split-complementary
#5C38AE #AE9738 #4FAE38
monochromatic
#2B1A51 #442980 #5C38AE #7C59CA #A088D9

Accessibility & contrast

On white

7.98
#5C38AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5C38AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C38AE
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C38AE#FFFFFF#000000##FFFFFF
##5C38AE1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#43556E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5c38ae;
/* rgb */ color: rgb(92, 56, 174);
/* oklch */ color: oklch(45.3% 0.177 291.7);
Tailwind
colors: {
  custom: {
    50: '#9171c7',
    500: '#5c38ae',
    950: '#000000',
  },
}
SCSS
$custom: #5c38ae;
$custom-light: #9171c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c38ae",
  "rgb": {
    "r": 92,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 258.305,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45279,
    "c": 0.17747,
    "h": 291.7
  },
  "luminance": 0.0816
}

Semantic roles & 50–950 ramp

primary
#5C38AE
secondary
#AEC37F
accent
#DB4DB0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5C38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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