#5C38D9#5C38D9

#5C38D9 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.228 H 284.5°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5C38D9
RGBrgb(92, 56, 217)
HSLhsl(253, 68%, 54%)
HSVhsv(253, 74%, 85%)
CMYKcmyk(57.6%, 74.2%, 0%, 14.9%)
CIE-LABlab(38.04, 56.03, -76.61)
CIE-LCHlch(38.04, 94.91, 306.18°)
OKLaboklab(49.08% 0.0571 -0.2207)
OKLCHoklch(49.08% 0.228 284.5)
XYZxyz(18.3484, 10.1123, 66.6172)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C38D9 #B5D938
analogous
#3864D9 #5C38D9 #AC38D9
triadic
#5C38D9 #D95C38 #38D95C
tetradic
#5C38D9 #D93864 #B5D938 #38D9AC
square
#5C38D9 #D93864 #B5D938 #38D9AC
split-complementary
#5C38D9 #D9AC38 #64D938
monochromatic
#2F187E #4222B2 #5C38D9 #866BE3 #B09FED

Accessibility & contrast

On white

6.95
#5C38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5C38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C38D9
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C38D9#FFFFFF#000000##FFFFFF
##5C38D91.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDE
Deuteranopia (green-blind)
#0054D6
Tritanopia (blue-blind)
#156586
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5c38d9;
/* rgb */ color: rgb(92, 56, 217);
/* oklch */ color: oklch(49.1% 0.228 284.5);
Tailwind
colors: {
  custom: {
    50: '#9773e6',
    500: '#5c38d9',
    950: '#000000',
  },
}
SCSS
$custom: #5c38d9;
$custom-light: #9773e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c38d9",
  "rgb": {
    "r": 92,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 253.416,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49075,
    "c": 0.22794,
    "h": 284.5
  },
  "luminance": 0.10113
}

Semantic roles & 50–950 ramp

primary
#5C38D9
secondary
#C9D994
accent
#EB3DC4
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5C38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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