#5A38DB#5A38DB

#5A38DB is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.1% C 0.230 H 283.5°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5A38DB
RGBrgb(90, 56, 219)
HSLhsl(253, 69%, 54%)
HSVhsv(253, 74%, 86%)
CMYKcmyk(58.9%, 74.4%, 0%, 14.1%)
CIE-LABlab(38.05, 56.34, -77.76)
CIE-LCHlch(38.05, 96.02, 305.93°)
OKLaboklab(49.09% 0.0537 -0.2241)
OKLCHoklch(49.09% 0.23 283.5)
XYZxyz(18.4129, 10.1153, 67.9863)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A38DB #B9DB38
analogous
#3868DB #5A38DB #AC38DB
triadic
#5A38DB #DB5A38 #38DB5A
tetradic
#5A38DB #DB3868 #B9DB38 #38DBAC
square
#5A38DB #DB3868 #B9DB38 #38DBAC
split-complementary
#5A38DB #DBAC38 #68DB38
monochromatic
#2D1781 #4021B5 #5A38DB #856CE4 #B0A0EE

Accessibility & contrast

On white

6.95
#5A38DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5A38DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A38DB
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A38DB#FFFFFF#000000##FFFFFF
##5A38DB1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE0
Deuteranopia (green-blind)
#0054D8
Tritanopia (blue-blind)
#006687
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a38db;
/* rgb */ color: rgb(90, 56, 219);
/* oklch */ color: oklch(49.1% 0.230 283.5);
Tailwind
colors: {
  custom: {
    50: '#9773e7',
    500: '#5a38db',
    950: '#000000',
  },
}
SCSS
$custom: #5a38db;
$custom-light: #9773e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a38db",
  "rgb": {
    "r": 90,
    "g": 56,
    "b": 219
  },
  "hsl": {
    "h": 252.515,
    "s": 69.362,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49091,
    "c": 0.23045,
    "h": 283.5
  },
  "luminance": 0.10116
}

Semantic roles & 50–950 ramp

primary
#5A38DB
secondary
#CCDA95
accent
#EC3CC7
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5A38DB

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

Preview Lab → · Contrast checker → · Palette generator →

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