#A42BA5#A42BA5

#A42BA5 is a mid, highly saturated purple. Relative luminance 0.123; OKLCH L 52.5% C 0.206 H 327.7°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#A42BA5
RGBrgb(164, 43, 165)
HSLhsl(300, 59%, 41%)
HSVhsv(300, 74%, 65%)
CMYKcmyk(0.6%, 73.9%, 0%, 35.3%)
CIE-LABlab(41.75, 62.50, -39.70)
CIE-LCHlch(41.75, 74.04, 327.58°)
OKLaboklab(52.5% 0.1739 -0.1101)
OKLCHoklch(52.5% 0.206 327.7)
XYZxyz(22.9649, 12.3385, 36.7620)
Luminance0.1234 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42BA5 #2CA52B
analogous
#672BA5 #A42BA5 #A52B69
triadic
#A42BA5 #A5A42B #2BA5A4
tetradic
#A42BA5 #A5672B #2CA52B #2B69A5
square
#A42BA5 #A5672B #2CA52B #2B69A5
split-complementary
#A42BA5 #69A52B #2BA567
monochromatic
#431244 #741E74 #A42BA5 #CC40CD #D971DA

Accessibility & contrast

On white

6.06
#A42BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A42BA5
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42BA5#FFFFFF#000000##FFFFFF
##A42BA51.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F59A8
Deuteranopia (green-blind)
#4C68A2
Tritanopia (blue-blind)
#A93E66
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #a42ba5;
/* rgb */ color: rgb(164, 43, 165);
/* oklch */ color: oklch(52.5% 0.206 327.7);
Tailwind
colors: {
  custom: {
    50: '#c371c0',
    500: '#a42ba5',
    950: '#000000',
  },
}
SCSS
$custom: #a42ba5;
$custom-light: #c371c0;
$custom-dark: #000000;
JSON
{
  "hex": "#a42ba5",
  "rgb": {
    "r": 164,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 299.508,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52498,
    "c": 0.20582,
    "h": 327.7
  },
  "luminance": 0.12337
}

Semantic roles & 50–950 ramp

primary
#A42BA5
secondary
#6BC16B
accent
#E24647
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A42BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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