#5B38D0#5B38D0

#5B38D0 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.2% C 0.218 H 285.4°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5B38D0
RGBrgb(91, 56, 208)
HSLhsl(254, 62%, 52%)
HSVhsv(254, 73%, 82%)
CMYKcmyk(56.2%, 73.1%, 0%, 18.4%)
CIE-LABlab(37.13, 53.33, -72.93)
CIE-LCHlch(37.13, 90.35, 306.18°)
OKLaboklab(48.16% 0.0578 -0.21)
OKLCHoklch(48.16% 0.218 285.4)
XYZxyz(17.1103, 9.6056, 60.6147)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38D0 #ADD038
analogous
#3861D0 #5B38D0 #A738D0
triadic
#5B38D0 #D05B38 #38D05B
tetradic
#5B38D0 #D03861 #ADD038 #38D0A7
square
#5B38D0 #D03861 #ADD038 #38D0A7
split-complementary
#5B38D0 #D0A738 #61D038
monochromatic
#2F1B73 #4427A4 #5B38D0 #846ADC #AD9BE7

Accessibility & contrast

On white

7.19
#5B38D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B38D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38D0
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38D0#FFFFFF#000000##FFFFFF
##5B38D01.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD4
Deuteranopia (green-blind)
#0053CD
Tritanopia (blue-blind)
#216281
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b38d0;
/* rgb */ color: rgb(91, 56, 208);
/* oklch */ color: oklch(48.2% 0.218 285.4);
Tailwind
colors: {
  custom: {
    50: '#9672e0',
    500: '#5b38d0',
    950: '#000000',
  },
}
SCSS
$custom: #5b38d0;
$custom-light: #9672e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38d0",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 208
  },
  "hsl": {
    "h": 253.816,
    "s": 61.789,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48155,
    "c": 0.21776,
    "h": 285.4
  },
  "luminance": 0.09607
}

Semantic roles & 50–950 ramp

primary
#5B38D0
secondary
#C4D391
accent
#E543C0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B38D0

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

Preview Lab → · Contrast checker → · Palette generator →

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