#5A38BA#5A38BA

#5A38BA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.192 H 288.5°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#5A38BA
RGBrgb(90, 56, 186)
HSLhsl(256, 54%, 47%)
HSVhsv(256, 70%, 73%)
CMYKcmyk(51.6%, 69.9%, 0%, 27.1%)
CIE-LABlab(35.10, 46.87, -63.41)
CIE-LCHlch(35.10, 78.85, 306.47°)
OKLaboklab(46.1% 0.0609 -0.1821)
OKLCHoklch(46.1% 0.192 288.5)
XYZxyz(14.4910, 8.5465, 47.3309)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38BA #98BA38
analogous
#3857BA #5A38BA #9B38BA
triadic
#5A38BA #BA5A38 #38BA5A
tetradic
#5A38BA #BA3857 #98BA38 #38BA9B
square
#5A38BA #BA3857 #98BA38 #38BA9B
split-complementary
#5A38BA #BA9B38 #57BA38
monochromatic
#2C1C5C #432A8B #5A38BA #7D60CF #A48FDD

Accessibility & contrast

On white

7.75
#5A38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5A38BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38BA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38BA#FFFFFF#000000##FFFFFF
##5A38BA1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#375A75
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a38ba;
/* rgb */ color: rgb(90, 56, 186);
/* oklch */ color: oklch(46.1% 0.192 288.5);
Tailwind
colors: {
  custom: {
    50: '#9271d0',
    500: '#5a38ba',
    950: '#000000',
  },
}
SCSS
$custom: #5a38ba;
$custom-light: #9271d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38ba",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 255.692,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46099,
    "c": 0.19199,
    "h": 288.5
  },
  "luminance": 0.08547
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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