#5B38DF#5B38DF

#5B38DF is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.6% C 0.235 H 283.3°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5B38DF
RGBrgb(91, 56, 223)
HSLhsl(253, 72%, 55%)
HSVhsv(253, 75%, 87%)
CMYKcmyk(59.2%, 74.9%, 0%, 12.5%)
CIE-LABlab(38.51, 57.60, -79.28)
CIE-LCHlch(38.51, 98.00, 306.00°)
OKLaboklab(49.55% 0.0542 -0.2285)
OKLCHoklch(49.55% 0.235 283.3)
XYZxyz(19.0437, 10.3789, 70.7976)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B38DF #BCDF38
analogous
#3869DF #5B38DF #AF38DF
triadic
#5B38DF #DF5B38 #38DF5B
tetradic
#5B38DF #DF3869 #BCDF38 #38DFAF
square
#5B38DF #DF3869 #BCDF38 #38DFAF
split-complementary
#5B38DF #DFAF38 #69DF38
monochromatic
#2D1687 #3F1EBC #5B38DF #866DE7 #B2A1F0

Accessibility & contrast

On white

6.83
#5B38DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5B38DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B38DF
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B38DF#FFFFFF#000000##FFFFFF
##5B38DF1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E4
Deuteranopia (green-blind)
#0055DC
Tritanopia (blue-blind)
#006889
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b38df;
/* rgb */ color: rgb(91, 56, 223);
/* oklch */ color: oklch(49.6% 0.235 283.3);
Tailwind
colors: {
  custom: {
    50: '#9873ea',
    500: '#5b38df',
    950: '#000000',
  },
}
SCSS
$custom: #5b38df;
$custom-light: #9873ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5b38df",
  "rgb": {
    "r": 91,
    "g": 56,
    "b": 223
  },
  "hsl": {
    "h": 252.575,
    "s": 72.294,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49554,
    "c": 0.23485,
    "h": 283.3
  },
  "luminance": 0.1038
}

Semantic roles & 50–950 ramp

primary
#5B38DF
secondary
#CEDD96
accent
#EF39C9
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B38DF

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

Preview Lab → · Contrast checker → · Palette generator →

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