#A42FAB#A42FAB

#A42FAB is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.2% C 0.206 H 325.5°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#A42FAB
RGBrgb(164, 47, 171)
HSLhsl(297, 57%, 43%)
HSVhsv(297, 73%, 67%)
CMYKcmyk(4.1%, 72.5%, 0%, 32.9%)
CIE-LABlab(42.56, 62.18, -41.98)
CIE-LCHlch(42.56, 75.02, 325.98°)
OKLaboklab(53.19% 0.1701 -0.1167)
OKLCHoklch(53.19% 0.206 325.5)
XYZxyz(23.6765, 12.8674, 39.7568)
Luminance0.1287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FAB #36AB2F
analogous
#662FAB #A42FAB #AB2F74
triadic
#A42FAB #ABA42F #2FABA4
tetradic
#A42FAB #AB662F #36AB2F #2F74AB
square
#A42FAB #AB662F #36AB2F #2F74AB
split-complementary
#A42FAB #74AB2F #2FAB66
monochromatic
#48154B #76227B #A42FAB #C64ACD #D57ADA

Accessibility & contrast

On white

5.88
#A42FAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#A42FAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FAB
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FAB#FFFFFF#000000##FFFFFF
##A42FAB1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5BAE
Deuteranopia (green-blind)
#4A69A8
Tritanopia (blue-blind)
#A8446A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a42fab;
/* rgb */ color: rgb(164, 47, 171);
/* oklch */ color: oklch(53.2% 0.206 325.5);
Tailwind
colors: {
  custom: {
    50: '#c373c4',
    500: '#a42fab',
    950: '#000000',
  },
}
SCSS
$custom: #a42fab;
$custom-light: #c373c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fab",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 296.613,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5319,
    "c": 0.20626,
    "h": 325.5
  },
  "luminance": 0.12866
}

Semantic roles & 50–950 ramp

primary
#A42FAB
secondary
#78C373
accent
#E04850
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A42FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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