#5A40DB#5A40DB

#5A40DB is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.1% C 0.222 H 282.5°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5A40DB
RGBrgb(90, 64, 219)
HSLhsl(250, 68%, 55%)
HSVhsv(250, 71%, 86%)
CMYKcmyk(58.9%, 70.8%, 0%, 14.1%)
CIE-LABlab(39.50, 52.26, -75.37)
CIE-LCHlch(39.50, 91.71, 304.74°)
OKLaboklab(50.12% 0.0481 -0.2172)
OKLCHoklch(50.12% 0.222 282.5)
XYZxyz(18.8321, 10.9537, 68.1260)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A40DB #C1DB40
analogous
#4073DB #5A40DB #A840DB
triadic
#5A40DB #DB5A40 #40DB5A
tetradic
#5A40DB #DB4073 #C1DB40 #40DBA8
square
#5A40DB #DB4073 #C1DB40 #40DBA8
split-complementary
#5A40DB #DBA840 #73DB40
monochromatic
#2C1987 #3D23BB #5A40DB #8673E5 #B3A7EE

Accessibility & contrast

On white

6.58
#5A40DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5A40DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A40DB
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A40DB#FFFFFF#000000##FFFFFF
##5A40DB1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a40db;
/* rgb */ color: rgb(90, 64, 219);
/* oklch */ color: oklch(50.1% 0.222 282.5);
Tailwind
colors: {
  custom: {
    50: '#9677e7',
    500: '#5a40db',
    950: '#000000',
  },
}
SCSS
$custom: #5a40db;
$custom-light: #9677e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a40db",
  "rgb": {
    "r": 90,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 250.065,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.5012,
    "c": 0.22242,
    "h": 282.5
  },
  "luminance": 0.10955
}

Semantic roles & 50–950 ramp

primary
#5A40DB
secondary
#D1DC9B
accent
#EB3DCE
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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