#A42FAC#A42FAC

#A42FAC is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.3% C 0.207 H 325.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#A42FAC
RGBrgb(164, 47, 172)
HSLhsl(296, 57%, 43%)
HSVhsv(296, 73%, 67%)
CMYKcmyk(4.7%, 72.7%, 0%, 32.5%)
CIE-LABlab(42.62, 62.35, -42.48)
CIE-LCHlch(42.62, 75.45, 325.73°)
OKLaboklab(53.25% 0.17 -0.1182)
OKLCHoklch(53.25% 0.207 325.2)
XYZxyz(23.7722, 12.9056, 40.2607)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FAC #37AC2F
analogous
#652FAC #A42FAC #AC2F75
triadic
#A42FAC #ACA42F #2FACA4
tetradic
#A42FAC #AC652F #37AC2F #2F75AC
square
#A42FAC #AC652F #37AC2F #2F75AC
split-complementary
#A42FAC #75AC2F #2FAC65
monochromatic
#48154C #76227C #A42FAC #C54BCE #D57BDB

Accessibility & contrast

On white

5.86
#A42FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#A42FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FAC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FAC#FFFFFF#000000##FFFFFF
##A42FAC1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065BAF
Deuteranopia (green-blind)
#4969A9
Tritanopia (blue-blind)
#A8446B
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a42fac;
/* rgb */ color: rgb(164, 47, 172);
/* oklch */ color: oklch(53.3% 0.207 325.2);
Tailwind
colors: {
  custom: {
    50: '#c373c5',
    500: '#a42fac',
    950: '#000000',
  },
}
SCSS
$custom: #a42fac;
$custom-light: #c373c5;
$custom-dark: #000000;
JSON
{
  "hex": "#a42fac",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 296.16,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53251,
    "c": 0.20708,
    "h": 325.2
  },
  "luminance": 0.12904
}

Semantic roles & 50–950 ramp

primary
#A42FAC
secondary
#79C374
accent
#E04751
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A42FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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