#5C38D5#5C38D5

#5C38D5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.7% C 0.223 H 285.1°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5C38D5
RGBrgb(92, 56, 213)
HSLhsl(254, 65%, 53%)
HSVhsv(254, 74%, 84%)
CMYKcmyk(56.8%, 73.7%, 0%, 16.5%)
CIE-LABlab(37.67, 54.89, -74.91)
CIE-LCHlch(37.67, 92.87, 306.23°)
OKLaboklab(48.7% 0.058 -0.2157)
OKLCHoklch(48.7% 0.223 285.1)
XYZxyz(17.8344, 9.9067, 63.9103)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C38D5 #B1D538
analogous
#3862D5 #5C38D5 #AA38D5
triadic
#5C38D5 #D55C38 #38D55C
tetradic
#5C38D5 #D53862 #B1D538 #38D5AA
square
#5C38D5 #D53862 #B1D538 #38D5AA
split-complementary
#5C38D5 #D5AA38 #62D538
monochromatic
#2F1A79 #4324AC #5C38D5 #856BE0 #AF9DEA

Accessibility & contrast

On white

7.04
#5C38D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5C38D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C38D5
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C38D5#FFFFFF#000000##FFFFFF
##5C38D51.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDA
Deuteranopia (green-blind)
#0054D2
Tritanopia (blue-blind)
#1D6484
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5c38d5;
/* rgb */ color: rgb(92, 56, 213);
/* oklch */ color: oklch(48.7% 0.223 285.1);
Tailwind
colors: {
  custom: {
    50: '#9773e3',
    500: '#5c38d5',
    950: '#000000',
  },
}
SCSS
$custom: #5c38d5;
$custom-light: #9773e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c38d5",
  "rgb": {
    "r": 92,
    "g": 56,
    "b": 213
  },
  "hsl": {
    "h": 253.758,
    "s": 65.145,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48704,
    "c": 0.2234,
    "h": 285.1
  },
  "luminance": 0.09908
}

Semantic roles & 50–950 ramp

primary
#5C38D5
secondary
#C7D692
accent
#E840C1
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5C38D5

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

Preview Lab → · Contrast checker → · Palette generator →

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