#5B38CA#5B38CA

#5B38CA is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.6% C 0.211 H 286.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5B38CA
RGBrgb(91, 56, 202)
HSLhsl(254, 58%, 51%)
HSVhsv(254, 72%, 79%)
CMYKcmyk(55%, 72.3%, 0%, 20.8%)
CIE-LABlab(36.59, 51.62, -70.34)
CIE-LCHlch(36.59, 87.24, 306.27°)
OKLaboklab(47.61% 0.0591 -0.2024)
OKLCHoklch(47.61% 0.211 286.3)
XYZxyz(16.3860, 9.3159, 56.8004)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38CA #A7CA38
analogous
#385ECA #5B38CA #A438CA
triadic
#5B38CA #CA5B38 #38CA5B
tetradic
#5B38CA #CA385E #A7CA38 #38CAA4
square
#5B38CA #CA385E #A7CA38 #38CAA4
split-complementary
#5B38CA #CAA438 #5ECA38
monochromatic
#2F1D6B #45299B #5B38CA #8368D7 #AB99E4

Accessibility & contrast

On white

7.33
#5B38CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5B38CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38CA
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38CA#FFFFFF#000000##FFFFFF
##5B38CA1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0052C7
Tritanopia (blue-blind)
#2A607E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b38ca;
/* rgb */ color: rgb(91, 56, 202);
/* oklch */ color: oklch(47.6% 0.211 286.3);
Tailwind
colors: {
  custom: {
    50: '#9572db',
    500: '#5b38ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b38ca;
$custom-light: #9572db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38ca",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 254.384,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47609,
    "c": 0.21081,
    "h": 286.3
  },
  "luminance": 0.09317
}

Semantic roles & 50–950 ramp

primary
#5B38CA
secondary
#C0CF8E
accent
#E147BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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