#5A42AE#5A42AE

#5A42AE is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.6% C 0.164 H 288.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5A42AE
RGBrgb(90, 66, 174)
HSLhsl(253, 45%, 47%)
HSVhsv(253, 62%, 68%)
CMYKcmyk(48.3%, 62.1%, 0%, 31.8%)
CIE-LABlab(36.22, 37.70, -54.46)
CIE-LCHlch(36.22, 66.24, 304.69°)
OKLaboklab(46.62% 0.0524 -0.1558)
OKLCHoklch(46.62% 0.164 288.6)
XYZxyz(13.8024, 9.1255, 41.0703)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42AE #96AE42
analogous
#4260AE #5A42AE #9042AE
triadic
#5A42AE #AE5A42 #42AE5A
tetradic
#5A42AE #AE4260 #96AE42 #42AE90
square
#5A42AE #AE4260 #96AE42 #42AE90
split-complementary
#5A42AE #AE9042 #60AE42
monochromatic
#2C2055 #433182 #5A42AE #7D68C6 #A394D6

Accessibility & contrast

On white

7.43
#5A42AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A42AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A42AE
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42AE#FFFFFF#000000##FFFFFF
##5A42AE1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B1
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#3E5B72
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a42ae;
/* rgb */ color: rgb(90, 66, 174);
/* oklch */ color: oklch(46.6% 0.164 288.6);
Tailwind
colors: {
  custom: {
    50: '#8f77c7',
    500: '#5a42ae',
    950: '#000000',
  },
}
SCSS
$custom: #5a42ae;
$custom-light: #8f77c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42ae",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 253.333,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46616,
    "c": 0.16437,
    "h": 288.6
  },
  "luminance": 0.09126
}

Semantic roles & 50–950 ramp

primary
#5A42AE
secondary
#B5C28A
accent
#D553B8
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5A42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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