#A42AB7#A42AB7

#A42AB7 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.5% C 0.221 H 321.8°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#A42AB7
RGBrgb(164, 42, 183)
HSLhsl(292, 63%, 44%)
HSVhsv(292, 77%, 72%)
CMYKcmyk(10.4%, 77%, 0%, 28.2%)
CIE-LABlab(42.72, 65.92, -48.83)
CIE-LCHlch(42.72, 82.03, 323.47°)
OKLaboklab(53.53% 0.1738 -0.1367)
OKLCHoklch(53.53% 0.221 321.8)
XYZxyz(24.6841, 12.9688, 45.9936)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42AB7 #3DB72A
analogous
#5E2AB7 #A42AB7 #B72A84
triadic
#A42AB7 #B7A42A #2AB7A4
tetradic
#A42AB7 #B75E2A #3DB72A #2A84B7
square
#A42AB7 #B75E2A #3DB72A #2A84B7
split-complementary
#A42AB7 #84B72A #2AB75E
monochromatic
#4B1353 #771F85 #A42AB7 #C249D5 #D37BE1

Accessibility & contrast

On white

5.84
#A42AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#A42AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42AB7
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42AB7#FFFFFF#000000##FFFFFF
##A42AB71.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#3E69B4
Tritanopia (blue-blind)
#A64770
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a42ab7;
/* rgb */ color: rgb(164, 42, 183);
/* oklch */ color: oklch(53.5% 0.221 321.8);
Tailwind
colors: {
  custom: {
    50: '#c372cd',
    500: '#a42ab7',
    950: '#000000',
  },
}
SCSS
$custom: #a42ab7;
$custom-light: #c372cd;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ab7",
  "rgb": {
    "r": 164,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 291.915,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.53532,
    "c": 0.22112,
    "h": 321.8
  },
  "luminance": 0.12967
}

Semantic roles & 50–950 ramp

primary
#A42AB7
secondary
#7FC974
accent
#E64258
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #A42AB7

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

Preview Lab → · Contrast checker → · Palette generator →

#A42AB7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva