#5A38BF#5A38BF

#5A38BF is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.5% C 0.198 H 287.6°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5A38BF
RGBrgb(90, 56, 191)
HSLhsl(255, 55%, 48%)
HSVhsv(255, 71%, 75%)
CMYKcmyk(52.9%, 70.7%, 0%, 25.1%)
CIE-LABlab(35.52, 48.31, -65.65)
CIE-LCHlch(35.52, 81.51, 306.35°)
OKLaboklab(46.54% 0.06 -0.1887)
OKLCHoklch(46.54% 0.198 287.6)
XYZxyz(15.0318, 8.7628, 50.1795)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38BF #9DBF38
analogous
#3859BF #5A38BF #9D38BF
triadic
#5A38BF #BF5A38 #38BF5A
tetradic
#5A38BF #BF3859 #9DBF38 #38BF9D
square
#5A38BF #BF3859 #9DBF38 #38BF9D
split-complementary
#5A38BF #BF9D38 #59BF38
monochromatic
#2D1C60 #442A90 #5A38BF #7F63D1 #A692DF

Accessibility & contrast

On white

7.63
#5A38BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A38BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38BF
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38BF#FFFFFF#000000##FFFFFF
##5A38BF1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C3
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#325B78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a38bf;
/* rgb */ color: rgb(90, 56, 191);
/* oklch */ color: oklch(46.5% 0.198 287.6);
Tailwind
colors: {
  custom: {
    50: '#9272d3',
    500: '#5a38bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a38bf;
$custom-light: #9272d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38bf",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 255.111,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46536,
    "c": 0.19796,
    "h": 287.6
  },
  "luminance": 0.08764
}

Semantic roles & 50–950 ramp

primary
#5A38BF
secondary
#BACA89
accent
#DE4AB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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