#A042AF#A042AF

#A042AF is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.8% C 0.184 H 321.9°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#A042AF
RGBrgb(160, 66, 175)
HSLhsl(292, 45%, 47%)
HSVhsv(292, 62%, 69%)
CMYKcmyk(8.6%, 62.3%, 0%, 31.4%)
CIE-LABlab(44.89, 54.35, -40.68)
CIE-LCHlch(44.89, 67.89, 323.19°)
OKLaboklab(54.82% 0.1445 -0.1132)
OKLCHoklch(54.82% 0.184 321.9)
XYZxyz(24.1825, 14.4664, 42.0676)
Luminance0.1447 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042AF #51AF42
analogous
#6A42AF #A042AF #AF4288
triadic
#A042AF #AFA042 #42AFA0
tetradic
#A042AF #AF6A42 #51AF42 #4288AF
square
#A042AF #AF6A42 #51AF42 #4288AF
split-complementary
#A042AF #88AF42 #42AF6A
monochromatic
#4F2056 #773183 #A042AF #B968C6 #CE95D7

Accessibility & contrast

On white

5.39
#A042AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#A042AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042AF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042AF#FFFFFF#000000##FFFFFF
##A042AF1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B2
Deuteranopia (green-blind)
#4F6EAC
Tritanopia (blue-blind)
#A25372
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a042af;
/* rgb */ color: rgb(160, 66, 175);
/* oklch */ color: oklch(54.8% 0.184 321.9);
Tailwind
colors: {
  custom: {
    50: '#bf7cc7',
    500: '#a042af',
    950: '#000000',
  },
}
SCSS
$custom: #a042af;
$custom-light: #bf7cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#a042af",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 175
  },
  "hsl": {
    "h": 291.743,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5482,
    "c": 0.18358,
    "h": 321.9
  },
  "luminance": 0.14465
}

Semantic roles & 50–950 ramp

primary
#A042AF
secondary
#92C28A
accent
#D55365
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A042AF

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

Preview Lab → · Contrast checker → · Palette generator →

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