#5A38C0#5A38C0

#5A38C0 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.199 H 287.5°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5A38C0
RGBrgb(90, 56, 192)
HSLhsl(255, 55%, 49%)
HSVhsv(255, 71%, 75%)
CMYKcmyk(53.1%, 70.8%, 0%, 24.7%)
CIE-LABlab(35.61, 48.60, -66.10)
CIE-LCHlch(35.61, 82.04, 306.32°)
OKLaboklab(46.62% 0.0598 -0.19)
OKLCHoklch(46.62% 0.199 287.5)
XYZxyz(15.1422, 8.8070, 50.7610)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38C0 #9EC038
analogous
#385AC0 #5A38C0 #9E38C0
triadic
#5A38C0 #C05A38 #38C05A
tetradic
#5A38C0 #C0385A #9EC038 #38C09E
square
#5A38C0 #C0385A #9EC038 #38C09E
split-complementary
#5A38C0 #C09E38 #5AC038
monochromatic
#2E1C61 #442A91 #5A38C0 #7F64D2 #A693DF

Accessibility & contrast

On white

7.60
#5A38C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5A38C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A38C0
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38C0#FFFFFF#000000##FFFFFF
##5A38C01.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0050BD
Tritanopia (blue-blind)
#315C78
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a38c0;
/* rgb */ color: rgb(90, 56, 192);
/* oklch */ color: oklch(46.6% 0.199 287.5);
Tailwind
colors: {
  custom: {
    50: '#9372d4',
    500: '#5a38c0',
    950: '#000000',
  },
}
SCSS
$custom: #5a38c0;
$custom-light: #9372d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38c0",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 255,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46624,
    "c": 0.19914,
    "h": 287.5
  },
  "luminance": 0.08808
}

Semantic roles & 50–950 ramp

primary
#5A38C0
secondary
#BACB89
accent
#DE4AB9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A38C0

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

Preview Lab → · Contrast checker → · Palette generator →

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