#5A38C6#5A38C6

#5A38C6 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.2% C 0.206 H 286.5°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5A38C6
RGBrgb(90, 56, 198)
HSLhsl(254, 56%, 50%)
HSVhsv(254, 72%, 78%)
CMYKcmyk(54.5%, 71.7%, 0%, 22.4%)
CIE-LABlab(36.13, 50.32, -68.75)
CIE-LCHlch(36.13, 85.20, 306.20°)
OKLaboklab(47.16% 0.0585 -0.1977)
OKLCHoklch(47.16% 0.206 286.5)
XYZxyz(15.8206, 9.0784, 54.3338)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38C6 #A4C638
analogous
#385DC6 #5A38C6 #A138C6
triadic
#5A38C6 #C65A38 #38C65A
tetradic
#5A38C6 #C6385D #A4C638 #38C6A1
square
#5A38C6 #C6385D #A4C638 #38C6A1
split-complementary
#5A38C6 #C6A138 #5DC638
monochromatic
#2F1D67 #442B96 #5A38C6 #8167D4 #A997E2

Accessibility & contrast

On white

7.46
#5A38C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5A38C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38C6
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38C6#FFFFFF#000000##FFFFFF
##5A38C61.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#0051C3
Tritanopia (blue-blind)
#2B5E7B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a38c6;
/* rgb */ color: rgb(90, 56, 198);
/* oklch */ color: oklch(47.2% 0.206 286.5);
Tailwind
colors: {
  custom: {
    50: '#9372d8',
    500: '#5a38c6',
    950: '#000000',
  },
}
SCSS
$custom: #5a38c6;
$custom-light: #9372d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38c6",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 254.366,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47158,
    "c": 0.20622,
    "h": 286.5
  },
  "luminance": 0.09079
}

Semantic roles & 50–950 ramp

primary
#5A38C6
secondary
#BECD8D
accent
#DF49BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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