#5A38BB#5A38BB

#5A38BB is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.193 H 288.3°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5A38BB
RGBrgb(90, 56, 187)
HSLhsl(256, 54%, 48%)
HSVhsv(256, 70%, 73%)
CMYKcmyk(51.9%, 70.1%, 0%, 26.7%)
CIE-LABlab(35.18, 47.16, -63.86)
CIE-LCHlch(35.18, 79.38, 306.44°)
OKLaboklab(46.19% 0.0607 -0.1834)
OKLCHoklch(46.19% 0.193 288.3)
XYZxyz(14.5976, 8.5892, 47.8928)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38BB #99BB38
analogous
#3857BB #5A38BB #9C38BB
triadic
#5A38BB #BB5A38 #38BB5A
tetradic
#5A38BB #BB3857 #99BB38 #38BB9C
square
#5A38BB #BB3857 #99BB38 #38BB9C
split-complementary
#5A38BB #BB9C38 #57BB38
monochromatic
#2D1C5D #432A8C #5A38BB #7D61D0 #A490DE

Accessibility & contrast

On white

7.73
#5A38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5A38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38BB
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38BB#FFFFFF#000000##FFFFFF
##5A38BB1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#365A75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a38bb;
/* rgb */ color: rgb(90, 56, 187);
/* oklch */ color: oklch(46.2% 0.193 288.3);
Tailwind
colors: {
  custom: {
    50: '#9271d0',
    500: '#5a38bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a38bb;
$custom-light: #9271d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38bb",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 255.573,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46186,
    "c": 0.19319,
    "h": 288.3
  },
  "luminance": 0.0859
}

Semantic roles & 50–950 ramp

primary
#5A38BB
secondary
#B7C886
accent
#DD4BB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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