#A42BA6#A42BA6

#A42BA6 is a mid, highly saturated purple. Relative luminance 0.124; OKLCH L 52.6% C 0.207 H 327.3°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#A42BA6
RGBrgb(164, 43, 166)
HSLhsl(299, 59%, 41%)
HSVhsv(299, 74%, 65%)
CMYKcmyk(1.2%, 74.1%, 0%, 34.9%)
CIE-LABlab(41.81, 62.67, -40.20)
CIE-LCHlch(41.81, 74.46, 327.32°)
OKLaboklab(52.56% 0.1739 -0.1115)
OKLCHoklch(52.56% 0.207 327.3)
XYZxyz(23.0563, 12.3751, 37.2433)
Luminance0.1237 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42BA6 #2DA62B
analogous
#662BA6 #A42BA6 #A62B6A
triadic
#A42BA6 #A6A42B #2BA6A4
tetradic
#A42BA6 #A6662B #2DA62B #2B6AA6
square
#A42BA6 #A6662B #2DA62B #2B6AA6
split-complementary
#A42BA6 #6AA62B #2BA666
monochromatic
#441245 #741E75 #A42BA6 #CB41CE #D971DA

Accessibility & contrast

On white

6.04
#A42BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#A42BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42BA6
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42BA6#FFFFFF#000000##FFFFFF
##A42BA61.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C59A9
Deuteranopia (green-blind)
#4B68A3
Tritanopia (blue-blind)
#A93F67
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42ba6;
/* rgb */ color: rgb(164, 43, 166);
/* oklch */ color: oklch(52.6% 0.207 327.3);
Tailwind
colors: {
  custom: {
    50: '#c371c1',
    500: '#a42ba6',
    950: '#000000',
  },
}
SCSS
$custom: #a42ba6;
$custom-light: #c371c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ba6",
  "rgb": {
    "r": 164,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 299.024,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52557,
    "c": 0.2066,
    "h": 327.3
  },
  "luminance": 0.12373
}

Semantic roles & 50–950 ramp

primary
#A42BA6
secondary
#6DC16B
accent
#E24648
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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