#A042BC#A042BC

#A042BC is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.6% C 0.196 H 317.6°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#A042BC
RGBrgb(160, 66, 188)
HSLhsl(286, 48%, 50%)
HSVhsv(286, 65%, 74%)
CMYKcmyk(14.9%, 64.9%, 0%, 26.3%)
CIE-LABlab(45.64, 56.89, -47.12)
CIE-LCHlch(45.64, 73.87, 320.37°)
OKLaboklab(55.6% 0.1446 -0.132)
OKLCHoklch(55.6% 0.196 317.6)
XYZxyz(25.5212, 15.0019, 49.1185)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042BC #5EBC42
analogous
#6342BC #A042BC #BC429B
triadic
#A042BC #BCA042 #42BCA0
tetradic
#A042BC #BC6342 #5EBC42 #429BBC
square
#A042BC #BC6342 #5EBC42 #429BBC
split-complementary
#A042BC #9BBC42 #42BC63
monochromatic
#532261 #79328F #A042BC #B76FCC #CE9CDC

Accessibility & contrast

On white

5.25
#A042BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#A042BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042BC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042BC#FFFFFF#000000##FFFFFF
##A042BC1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1666C0
Deuteranopia (green-blind)
#466FB9
Tritanopia (blue-blind)
#9F5879
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a042bc;
/* rgb */ color: rgb(160, 66, 188);
/* oklch */ color: oklch(55.6% 0.196 317.6);
Tailwind
colors: {
  custom: {
    50: '#bf7dd1',
    500: '#a042bc',
    950: '#000000',
  },
}
SCSS
$custom: #a042bc;
$custom-light: #bf7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a042bc",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 286.23,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55597,
    "c": 0.19579,
    "h": 317.6
  },
  "luminance": 0.15001
}

Semantic roles & 50–950 ramp

primary
#A042BC
secondary
#9EC991
accent
#D8506F
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A042BC

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

Preview Lab → · Contrast checker → · Palette generator →

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