#A042BD#A042BD

#A042BD is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.7% C 0.197 H 317.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#A042BD
RGBrgb(160, 66, 189)
HSLhsl(286, 48%, 50%)
HSVhsv(286, 65%, 74%)
CMYKcmyk(15.3%, 65.1%, 0%, 25.9%)
CIE-LABlab(45.70, 57.09, -47.61)
CIE-LCHlch(45.70, 74.34, 320.18°)
OKLaboklab(55.66% 0.1446 -0.1334)
OKLCHoklch(55.66% 0.197 317.3)
XYZxyz(25.6294, 15.0452, 49.6882)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042BD #5FBD42
analogous
#6342BD #A042BD #BD429C
triadic
#A042BD #BDA042 #42BDA0
tetradic
#A042BD #BD6342 #5FBD42 #429CBD
square
#A042BD #BD6342 #5FBD42 #429CBD
split-complementary
#A042BD #9CBD42 #42BD63
monochromatic
#532262 #7A3290 #A042BD #B76FCD #CE9DDD

Accessibility & contrast

On white

5.24
#A042BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#A042BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042BD
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042BD#FFFFFF#000000##FFFFFF
##A042BD1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1366C1
Deuteranopia (green-blind)
#456FBA
Tritanopia (blue-blind)
#9F587A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a042bd;
/* rgb */ color: rgb(160, 66, 189);
/* oklch */ color: oklch(55.7% 0.197 317.3);
Tailwind
colors: {
  custom: {
    50: '#bf7dd1',
    500: '#a042bd',
    950: '#000000',
  },
}
SCSS
$custom: #a042bd;
$custom-light: #bf7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a042bd",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 285.854,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.55658,
    "c": 0.19674,
    "h": 317.3
  },
  "luminance": 0.15044
}

Semantic roles & 50–950 ramp

primary
#A042BD
secondary
#9FC992
accent
#D85070
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A042BD

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

Preview Lab → · Contrast checker → · Palette generator →

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