#A42EA6#A42EA6

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

Color values

HEX#A42EA6
RGBrgb(164, 46, 166)
HSLhsl(299, 57%, 42%)
HSVhsv(299, 72%, 65%)
CMYKcmyk(1.2%, 72.3%, 0%, 34.9%)
CIE-LABlab(42.16, 61.67, -39.65)
CIE-LCHlch(42.16, 73.31, 327.26°)
OKLaboklab(52.81% 0.1711 -0.1099)
OKLCHoklch(52.81% 0.203 327.3)
XYZxyz(23.1694, 12.6013, 37.2810)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42EA6 #30A62E
analogous
#682EA6 #A42EA6 #A62E6C
triadic
#A42EA6 #A6A42E #2EA6A4
tetradic
#A42EA6 #A6682E #30A62E #2E6CA6
square
#A42EA6 #A6682E #30A62E #2E6CA6
split-complementary
#A42EA6 #6CA62E #2EA668
monochromatic
#451346 #752176 #A42EA6 #C946CC #D776D9

Accessibility & contrast

On white

5.97
#A42EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#A42EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42EA6
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42EA6#FFFFFF#000000##FFFFFF
##A42EA61.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#145AA9
Deuteranopia (green-blind)
#4C69A3
Tritanopia (blue-blind)
#A94167
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42ea6;
/* rgb */ color: rgb(164, 46, 166);
/* oklch */ color: oklch(52.8% 0.203 327.3);
Tailwind
colors: {
  custom: {
    50: '#c373c1',
    500: '#a42ea6',
    950: '#000000',
  },
}
SCSS
$custom: #a42ea6;
$custom-light: #c373c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ea6",
  "rgb": {
    "r": 164,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 299,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.52808,
    "c": 0.20337,
    "h": 327.3
  },
  "luminance": 0.126
}

Semantic roles & 50–950 ramp

primary
#A42EA6
secondary
#70C16F
accent
#E0484A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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