#5A3FDB#5A3FDB

#5A3FDB is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.0% C 0.223 H 282.6°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#5A3FDB
RGBrgb(90, 63, 219)
HSLhsl(250, 68%, 55%)
HSVhsv(250, 71%, 86%)
CMYKcmyk(58.9%, 71.2%, 0%, 14.1%)
CIE-LABlab(39.31, 52.78, -75.68)
CIE-LCHlch(39.31, 92.27, 304.90°)
OKLaboklab(49.99% 0.0488 -0.2181)
OKLCHoklch(49.99% 0.223 282.6)
XYZxyz(18.7762, 10.8419, 68.1074)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FDB #C0DB3F
analogous
#3F72DB #5A3FDB #A83FDB
triadic
#5A3FDB #DB5A3F #3FDB5A
tetradic
#5A3FDB #DB3F72 #C0DB3F #3FDBA8
square
#5A3FDB #DB3F72 #C0DB3F #3FDBA8
split-complementary
#5A3FDB #DBA83F #72DB3F
monochromatic
#2C1986 #3D23BA #5A3FDB #8673E5 #B3A6EE

Accessibility & contrast

On white

6.63
#5A3FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5A3FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FDB
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FDB#FFFFFF#000000##FFFFFF
##5A3FDB1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E0
Deuteranopia (green-blind)
#0057D8
Tritanopia (blue-blind)
#006A89
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a3fdb;
/* rgb */ color: rgb(90, 63, 219);
/* oklch */ color: oklch(50.0% 0.223 282.6);
Tailwind
colors: {
  custom: {
    50: '#9677e7',
    500: '#5a3fdb',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fdb;
$custom-light: #9677e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fdb",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 219
  },
  "hsl": {
    "h": 250.385,
    "s": 68.421,
    "l": 55.294
  },
  "oklch": {
    "l": 0.49985,
    "c": 0.22346,
    "h": 282.6
  },
  "luminance": 0.10843
}

Semantic roles & 50–950 ramp

primary
#5A3FDB
secondary
#D0DC9A
accent
#EB3DCD
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A3FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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