#A42EA5#A42EA5

#A42EA5 is a mid, highly saturated purple. Relative luminance 0.126; OKLCH L 52.7% C 0.203 H 327.6°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#A42EA5
RGBrgb(164, 46, 165)
HSLhsl(299, 56%, 41%)
HSVhsv(299, 72%, 65%)
CMYKcmyk(0.6%, 72.1%, 0%, 35.3%)
CIE-LABlab(42.10, 61.50, -39.14)
CIE-LCHlch(42.10, 72.90, 327.53°)
OKLaboklab(52.75% 0.1711 -0.1085)
OKLCHoklch(52.75% 0.203 327.6)
XYZxyz(23.0780, 12.5648, 36.7997)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42EA5 #2FA52E
analogous
#692EA5 #A42EA5 #A52E6B
triadic
#A42EA5 #A5A42E #2EA5A4
tetradic
#A42EA5 #A5692E #2FA52E #2E6BA5
square
#A42EA5 #A5692E #2FA52E #2E6BA5
split-complementary
#A42EA5 #6BA52E #2EA569
monochromatic
#451345 #742175 #A42EA5 #CA45CB #D875D8

Accessibility & contrast

On white

5.98
#A42EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#A42EA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42EA5
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42EA5#FFFFFF#000000##FFFFFF
##A42EA51.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165AA8
Deuteranopia (green-blind)
#4D69A2
Tritanopia (blue-blind)
#A94067
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42ea5;
/* rgb */ color: rgb(164, 46, 165);
/* oklch */ color: oklch(52.7% 0.203 327.6);
Tailwind
colors: {
  custom: {
    50: '#c373c0',
    500: '#a42ea5',
    950: '#000000',
  },
}
SCSS
$custom: #a42ea5;
$custom-light: #c373c0;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ea5",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 299.496,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52749,
    "c": 0.20258,
    "h": 327.6
  },
  "luminance": 0.12563
}

Semantic roles & 50–950 ramp

primary
#A42EA5
secondary
#6FC06F
accent
#E04849
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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