#5A38BD#5A38BD

#5A38BD is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.196 H 288.0°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5A38BD
RGBrgb(90, 56, 189)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 70%, 74%)
CMYKcmyk(52.4%, 70.4%, 0%, 25.9%)
CIE-LABlab(35.35, 47.73, -64.76)
CIE-LCHlch(35.35, 80.45, 306.39°)
OKLaboklab(46.36% 0.0603 -0.186)
OKLCHoklch(46.36% 0.196 288)
XYZxyz(14.8132, 8.6754, 49.0282)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38BD #9BBD38
analogous
#3859BD #5A38BD #9C38BD
triadic
#5A38BD #BD5A38 #38BD5A
tetradic
#5A38BD #BD3859 #9BBD38 #38BD9C
square
#5A38BD #BD3859 #9BBD38 #38BD9C
split-complementary
#5A38BD #BD9C38 #59BD38
monochromatic
#2D1C5F #442A8E #5A38BD #7E62D0 #A591DE

Accessibility & contrast

On white

7.68
#5A38BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A38BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38BD
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38BD#FFFFFF#000000##FFFFFF
##5A38BD1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#345B76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a38bd;
/* rgb */ color: rgb(90, 56, 189);
/* oklch */ color: oklch(46.4% 0.196 288.0);
Tailwind
colors: {
  custom: {
    50: '#9271d2',
    500: '#5a38bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a38bd;
$custom-light: #9271d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38bd",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 255.338,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4636,
    "c": 0.19558,
    "h": 288
  },
  "luminance": 0.08676
}

Semantic roles & 50–950 ramp

primary
#5A38BD
secondary
#B8C987
accent
#DE4AB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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