#A42BAB#A42BAB

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

Color values

HEX#A42BAB
RGBrgb(164, 43, 171)
HSLhsl(297, 60%, 42%)
HSVhsv(297, 75%, 67%)
CMYKcmyk(4.1%, 74.9%, 0%, 32.9%)
CIE-LABlab(42.10, 63.51, -42.72)
CIE-LCHlch(42.10, 76.54, 326.07°)
OKLaboklab(52.86% 0.1738 -0.1189)
OKLCHoklch(52.86% 0.211 325.6)
XYZxyz(23.5239, 12.5621, 39.7059)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42BAB #32AB2B
analogous
#642BAB #A42BAB #AB2B72
triadic
#A42BAB #ABA42B #2BABA4
tetradic
#A42BAB #AB642B #32AB2B #2B72AB
square
#A42BAB #AB642B #32AB2B #2B72AB
split-complementary
#A42BAB #72AB2B #2BAB64
monochromatic
#461249 #751F7A #A42BAB #C843D0 #D674DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A42BAB#FFFFFF#000000##FFFFFF
##A42BAB1.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)
#005AAE
Deuteranopia (green-blind)
#4868A8
Tritanopia (blue-blind)
#A84169
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a42bab;
/* rgb */ color: rgb(164, 43, 171);
/* oklch */ color: oklch(52.9% 0.211 325.6);
Tailwind
colors: {
  custom: {
    50: '#c372c4',
    500: '#a42bab',
    950: '#000000',
  },
}
SCSS
$custom: #a42bab;
$custom-light: #c372c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a42bab",
  "rgb": {
    "r": 164,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 296.719,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.52857,
    "c": 0.21054,
    "h": 325.6
  },
  "luminance": 0.12561
}

Semantic roles & 50–950 ramp

primary
#A42BAB
secondary
#73C46E
accent
#E3454D
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A42BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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