#5A38C3#5A38C3

#5A38C3 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.203 H 287.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5A38C3
RGBrgb(90, 56, 195)
HSLhsl(255, 55%, 49%)
HSVhsv(255, 71%, 76%)
CMYKcmyk(53.8%, 71.3%, 0%, 23.5%)
CIE-LABlab(35.87, 49.46, -67.43)
CIE-LCHlch(35.87, 83.62, 306.26°)
OKLaboklab(46.89% 0.0592 -0.1939)
OKLCHoklch(46.89% 0.203 287)
XYZxyz(15.4780, 8.9413, 52.5295)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38C3 #A1C338
analogous
#385CC3 #5A38C3 #A038C3
triadic
#5A38C3 #C35A38 #38C35A
tetradic
#5A38C3 #C3385C #A1C338 #38C3A0
square
#5A38C3 #C3385C #A1C338 #38C3A0
split-complementary
#5A38C3 #C3A038 #5CC338
monochromatic
#2E1D64 #442A93 #5A38C3 #8065D3 #A795E1

Accessibility & contrast

On white

7.53
#5A38C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5A38C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38C3
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38C3#FFFFFF#000000##FFFFFF
##5A38C31.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C7
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#2E5D7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a38c3;
/* rgb */ color: rgb(90, 56, 195);
/* oklch */ color: oklch(46.9% 0.203 287.0);
Tailwind
colors: {
  custom: {
    50: '#9372d6',
    500: '#5a38c3',
    950: '#000000',
  },
}
SCSS
$custom: #5a38c3;
$custom-light: #9372d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38c3",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 254.676,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.4689,
    "c": 0.20269,
    "h": 287
  },
  "luminance": 0.08942
}

Semantic roles & 50–950 ramp

primary
#5A38C3
secondary
#BCCC8B
accent
#DF49BA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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