#5B38CF#5B38CF

#5B38CF is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.217 H 285.5°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5B38CF
RGBrgb(91, 56, 207)
HSLhsl(254, 61%, 52%)
HSVhsv(254, 73%, 81%)
CMYKcmyk(56%, 72.9%, 0%, 18.8%)
CIE-LABlab(37.03, 53.05, -72.50)
CIE-LCHlch(37.03, 89.84, 306.19°)
OKLaboklab(48.06% 0.058 -0.2087)
OKLCHoklch(48.06% 0.217 285.5)
XYZxyz(16.9876, 9.5565, 59.9688)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38CF #ACCF38
analogous
#3861CF #5B38CF #A738CF
triadic
#5B38CF #CF5B38 #38CF5B
tetradic
#5B38CF #CF3861 #ACCF38 #38CFA7
square
#5B38CF #CF3861 #ACCF38 #38CFA7
split-complementary
#5B38CF #CFA738 #61CF38
monochromatic
#2F1B71 #4427A3 #5B38CF #8469DB #AC9BE7

Accessibility & contrast

On white

7.21
#5B38CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5B38CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B38CF
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38CF#FFFFFF#000000##FFFFFF
##5B38CF1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#236180
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b38cf;
/* rgb */ color: rgb(91, 56, 207);
/* oklch */ color: oklch(48.1% 0.217 285.5);
Tailwind
colors: {
  custom: {
    50: '#9572df',
    500: '#5b38cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b38cf;
$custom-light: #9572df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38cf",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 253.907,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48063,
    "c": 0.21661,
    "h": 285.5
  },
  "luminance": 0.09557
}

Semantic roles & 50–950 ramp

primary
#5B38CF
secondary
#C3D390
accent
#E444BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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