#5A36DB#5A36DB

#5A36DB is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.232 H 283.7°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5A36DB
RGBrgb(90, 54, 219)
HSLhsl(253, 70%, 54%)
HSVhsv(253, 75%, 86%)
CMYKcmyk(58.9%, 75.3%, 0%, 14.1%)
CIE-LABlab(37.71, 57.31, -78.32)
CIE-LCHlch(37.71, 97.05, 306.20°)
OKLaboklab(48.85% 0.0551 -0.2257)
OKLCHoklch(48.85% 0.232 283.7)
XYZxyz(18.3179, 9.9253, 67.9546)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36DB #B7DB36
analogous
#3664DB #5A36DB #AC36DB
triadic
#5A36DB #DB5A36 #36DB5A
tetradic
#5A36DB #DB3664 #B7DB36 #36DBAC
square
#5A36DB #DB3664 #B7DB36 #36DBAC
split-complementary
#5A36DB #DBAC36 #64DB36
monochromatic
#2E1780 #4020B4 #5A36DB #856AE4 #AF9EEE

Accessibility & contrast

On white

7.03
#5A36DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5A36DB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36DB
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36DB#FFFFFF#000000##FFFFFF
##5A36DB1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE0
Deuteranopia (green-blind)
#0053D8
Tritanopia (blue-blind)
#006587
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5a36db;
/* rgb */ color: rgb(90, 54, 219);
/* oklch */ color: oklch(48.9% 0.232 283.7);
Tailwind
colors: {
  custom: {
    50: '#9772e8',
    500: '#5a36db',
    950: '#000000',
  },
}
SCSS
$custom: #5a36db;
$custom-light: #9772e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36db",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 219
  },
  "hsl": {
    "h": 253.091,
    "s": 69.62,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48852,
    "c": 0.23234,
    "h": 283.7
  },
  "luminance": 0.09926
}

Semantic roles & 50–950 ramp

primary
#5A36DB
secondary
#CADA93
accent
#EC3BC6
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5A36DB

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

Preview Lab → · Contrast checker → · Palette generator →

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