#A42CAB#A42CAB

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

Color values

HEX#A42CAB
RGBrgb(164, 44, 171)
HSLhsl(297, 59%, 42%)
HSVhsv(297, 74%, 67%)
CMYKcmyk(4.1%, 74.3%, 0%, 32.9%)
CIE-LABlab(42.21, 63.19, -42.54)
CIE-LCHlch(42.21, 76.17, 326.05°)
OKLaboklab(52.94% 0.1729 -0.1184)
OKLCHoklch(52.94% 0.21 325.6)
XYZxyz(23.5607, 12.6357, 39.7182)
Luminance0.1263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42CAB #33AB2C
analogous
#652CAB #A42CAB #AB2C73
triadic
#A42CAB #ABA42C #2CABA4
tetradic
#A42CAB #AB652C #33AB2C #2C73AB
square
#A42CAB #AB652C #33AB2C #2C73AB
split-complementary
#A42CAB #73AB2C #2CAB65
monochromatic
#47134A #751F7A #A42CAB #C845CF #D676DC

Accessibility & contrast

On white

5.95
#A42CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#A42CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42CAB
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42CAB#FFFFFF#000000##FFFFFF
##A42CAB1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#4869A8
Tritanopia (blue-blind)
#A8426A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a42cab;
/* rgb */ color: rgb(164, 44, 171);
/* oklch */ color: oklch(52.9% 0.209 325.6);
Tailwind
colors: {
  custom: {
    50: '#c372c4',
    500: '#a42cab',
    950: '#000000',
  },
}
SCSS
$custom: #a42cab;
$custom-light: #c372c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a42cab",
  "rgb": {
    "r": 164,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 296.693,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52938,
    "c": 0.2095,
    "h": 325.6
  },
  "luminance": 0.12634
}

Semantic roles & 50–950 ramp

primary
#A42CAB
secondary
#74C36F
accent
#E2464E
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A42CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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