#5A38CA#5A38CA

#5A38CA is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.5% C 0.211 H 285.9°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5A38CA
RGBrgb(90, 56, 202)
HSLhsl(254, 58%, 51%)
HSVhsv(254, 72%, 79%)
CMYKcmyk(55.4%, 72.3%, 0%, 20.8%)
CIE-LABlab(36.49, 51.47, -70.50)
CIE-LCHlch(36.49, 87.29, 306.14°)
OKLaboklab(47.52% 0.0577 -0.2029)
OKLCHoklch(47.52% 0.211 285.9)
XYZxyz(16.2881, 9.2654, 56.7958)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38CA #A8CA38
analogous
#385FCA #5A38CA #A338CA
triadic
#5A38CA #CA5A38 #38CA5A
tetradic
#5A38CA #CA385F #A8CA38 #38CAA3
square
#5A38CA #CA385F #A8CA38 #38CAA3
split-complementary
#5A38CA #CAA338 #5FCA38
monochromatic
#2F1D6B #44299B #5A38CA #8268D7 #AA99E4

Accessibility & contrast

On white

7.36
#5A38CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5A38CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38CA
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38CA#FFFFFF#000000##FFFFFF
##5A38CA1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#26607E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a38ca;
/* rgb */ color: rgb(90, 56, 202);
/* oklch */ color: oklch(47.5% 0.211 285.9);
Tailwind
colors: {
  custom: {
    50: '#9472db',
    500: '#5a38ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a38ca;
$custom-light: #9472db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38ca",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 253.973,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47518,
    "c": 0.2109,
    "h": 285.9
  },
  "luminance": 0.09266
}

Semantic roles & 50–950 ramp

primary
#5A38CA
secondary
#C0CF8E
accent
#E147BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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