#5A38BC#5A38BC

#5A38BC is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.194 H 288.1°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5A38BC
RGBrgb(90, 56, 188)
HSLhsl(255, 54%, 48%)
HSVhsv(255, 70%, 74%)
CMYKcmyk(52.1%, 70.2%, 0%, 26.3%)
CIE-LABlab(35.27, 47.44, -64.31)
CIE-LCHlch(35.27, 79.92, 306.42°)
OKLaboklab(46.27% 0.0605 -0.1847)
OKLCHoklch(46.27% 0.194 288.1)
XYZxyz(14.7051, 8.6321, 48.4585)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38BC #9ABC38
analogous
#3858BC #5A38BC #9C38BC
triadic
#5A38BC #BC5A38 #38BC5A
tetradic
#5A38BC #BC3858 #9ABC38 #38BC9C
square
#5A38BC #BC3858 #9ABC38 #38BC9C
split-complementary
#5A38BC #BC9C38 #58BC38
monochromatic
#2D1C5E #432A8D #5A38BC #7E61D0 #A490DE

Accessibility & contrast

On white

7.70
#5A38BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5A38BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38BC
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38BC#FFFFFF#000000##FFFFFF
##5A38BC1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#355A76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a38bc;
/* rgb */ color: rgb(90, 56, 188);
/* oklch */ color: oklch(46.3% 0.194 288.1);
Tailwind
colors: {
  custom: {
    50: '#9271d1',
    500: '#5a38bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a38bc;
$custom-light: #9271d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38bc",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 255.455,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46273,
    "c": 0.19438,
    "h": 288.1
  },
  "luminance": 0.08633
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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