#A42FAF#A42FAF

#A42FAF is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.210 H 324.2°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#A42FAF
RGBrgb(164, 47, 175)
HSLhsl(295, 58%, 44%)
HSVhsv(295, 73%, 69%)
CMYKcmyk(6.3%, 73.1%, 0%, 31.4%)
CIE-LABlab(42.80, 62.87, -43.98)
CIE-LCHlch(42.80, 76.73, 325.03°)
OKLaboklab(53.43% 0.1699 -0.1226)
OKLCHoklch(53.43% 0.21 324.2)
XYZxyz(24.0636, 13.0222, 41.7952)
Luminance0.1302 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A42FAF #3AAF2F
analogous
#642FAF #A42FAF #AF2F7A
triadic
#A42FAF #AFA42F #2FAFA4
tetradic
#A42FAF #AF642F #3AAF2F #2F7AAF
square
#A42FAF #AF642F #3AAF2F #2F7AAF
split-complementary
#A42FAF #7AAF2F #2FAF64
monochromatic
#4A154F #77227F #A42FAF #C44CCF #D47CDC

Accessibility & contrast

On white

5.83
#A42FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#A42FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A42FAF
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A42FAF#FFFFFF#000000##FFFFFF
##A42FAF1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB3
Deuteranopia (green-blind)
#476AAC
Tritanopia (blue-blind)
#A7466D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a42faf;
/* rgb */ color: rgb(164, 47, 175);
/* oklch */ color: oklch(53.4% 0.210 324.2);
Tailwind
colors: {
  custom: {
    50: '#c373c7',
    500: '#a42faf',
    950: '#000000',
  },
}
SCSS
$custom: #a42faf;
$custom-light: #c373c7;
$custom-dark: #000000;
JSON
{
  "hex": "#a42faf",
  "rgb": {
    "r": 164,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 294.844,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.53433,
    "c": 0.20951,
    "h": 324.2
  },
  "luminance": 0.13021
}

Semantic roles & 50–950 ramp

primary
#A42FAF
secondary
#7CC475
accent
#E14754
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A42FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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