#5A38CD#5A38CD

#5A38CD is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.214 H 285.4°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5A38CD
RGBrgb(90, 56, 205)
HSLhsl(254, 60%, 51%)
HSVhsv(254, 73%, 80%)
CMYKcmyk(56.1%, 72.7%, 0%, 19.6%)
CIE-LABlab(36.76, 52.34, -71.80)
CIE-LCHlch(36.76, 88.85, 306.09°)
OKLaboklab(47.79% 0.057 -0.2067)
OKLCHoklch(47.79% 0.214 285.4)
XYZxyz(16.6467, 9.4088, 58.6847)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38CD #ABCD38
analogous
#3860CD #5A38CD #A438CD
triadic
#5A38CD #CD5A38 #38CD5A
tetradic
#5A38CD #CD3860 #ABCD38 #38CDA4
square
#5A38CD #CD3860 #ABCD38 #38CDA4
split-complementary
#5A38CD #CDA438 #60CD38
monochromatic
#2F1C6F #4328A0 #5A38CD #8369D9 #AB9AE6

Accessibility & contrast

On white

7.29
#5A38CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5A38CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38CD
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38CD#FFFFFF#000000##FFFFFF
##5A38CD1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#0052CA
Tritanopia (blue-blind)
#22617F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a38cd;
/* rgb */ color: rgb(90, 56, 205);
/* oklch */ color: oklch(47.8% 0.214 285.4);
Tailwind
colors: {
  custom: {
    50: '#9572dd',
    500: '#5a38cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a38cd;
$custom-light: #9572dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38cd",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 253.691,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47791,
    "c": 0.21439,
    "h": 285.4
  },
  "luminance": 0.0941
}

Semantic roles & 50–950 ramp

primary
#5A38CD
secondary
#C2D18F
accent
#E345BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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