#5A42AA#5A42AA

#5A42AA is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.3% C 0.159 H 289.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5A42AA
RGBrgb(90, 66, 170)
HSLhsl(254, 44%, 46%)
HSVhsv(254, 61%, 67%)
CMYKcmyk(47.1%, 61.2%, 0%, 33.3%)
CIE-LABlab(35.93, 36.51, -52.56)
CIE-LCHlch(35.93, 64.00, 304.79°)
OKLaboklab(46.31% 0.0526 -0.1502)
OKLCHoklch(46.31% 0.159 289.3)
XYZxyz(13.4183, 8.9718, 39.0471)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42AA #92AA42
analogous
#425EAA #5A42AA #8E42AA
triadic
#5A42AA #AA5A42 #42AA5A
tetradic
#5A42AA #AA425E #92AA42 #42AA8E
square
#5A42AA #AA425E #92AA42 #42AA8E
split-complementary
#5A42AA #AA8E42 #5EAA42
monochromatic
#2B2052 #43317E #5A42AA #7B66C3 #A192D5

Accessibility & contrast

On white

7.52
#5A42AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5A42AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A42AA
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42AA#FFFFFF#000000##FFFFFF
##5A42AA1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#0052A8
Tritanopia (blue-blind)
#415A6F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a42aa;
/* rgb */ color: rgb(90, 66, 170);
/* oklch */ color: oklch(46.3% 0.159 289.3);
Tailwind
colors: {
  custom: {
    50: '#8f77c4',
    500: '#5a42aa',
    950: '#000000',
  },
}
SCSS
$custom: #5a42aa;
$custom-light: #8f77c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42aa",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 253.846,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46307,
    "c": 0.15915,
    "h": 289.3
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#5A42AA
secondary
#B3C088
accent
#D454B6
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5A42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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