#5A38C8#5A38C8

#5A38C8 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.3% C 0.209 H 286.2°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5A38C8
RGBrgb(90, 56, 200)
HSLhsl(254, 57%, 50%)
HSVhsv(254, 72%, 78%)
CMYKcmyk(55%, 72%, 0%, 21.6%)
CIE-LABlab(36.31, 50.90, -69.62)
CIE-LCHlch(36.31, 86.24, 306.17°)
OKLaboklab(47.34% 0.0581 -0.2003)
OKLCHoklch(47.34% 0.209 286.2)
XYZxyz(16.0528, 9.1712, 55.5567)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38C8 #A6C838
analogous
#385EC8 #5A38C8 #A238C8
triadic
#5A38C8 #C85A38 #38C85A
tetradic
#5A38C8 #C8385E #A6C838 #38C8A2
square
#5A38C8 #C8385E #A6C838 #38C8A2
split-complementary
#5A38C8 #C8A238 #5EC838
monochromatic
#2F1D69 #442A99 #5A38C8 #8268D5 #AA98E3

Accessibility & contrast

On white

7.41
#5A38C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A38C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38C8
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38C8#FFFFFF#000000##FFFFFF
##5A38C81.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#295F7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a38c8;
/* rgb */ color: rgb(90, 56, 200);
/* oklch */ color: oklch(47.3% 0.209 286.2);
Tailwind
colors: {
  custom: {
    50: '#9472da',
    500: '#5a38c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a38c8;
$custom-light: #9472da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38c8",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 254.167,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47338,
    "c": 0.20857,
    "h": 286.2
  },
  "luminance": 0.09172
}

Semantic roles & 50–950 ramp

primary
#5A38C8
secondary
#BFCE8E
accent
#E048BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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