#A042BB#A042BB

#A042BB is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.5% C 0.195 H 317.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#A042BB
RGBrgb(160, 66, 187)
HSLhsl(287, 48%, 50%)
HSVhsv(287, 65%, 73%)
CMYKcmyk(14.4%, 64.7%, 0%, 26.7%)
CIE-LABlab(45.58, 56.70, -46.63)
CIE-LCHlch(45.58, 73.41, 320.56°)
OKLaboklab(55.54% 0.1446 -0.1305)
OKLCHoklch(55.54% 0.195 317.9)
XYZxyz(25.4138, 14.9589, 48.5528)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042BB #5DBB42
analogous
#6442BB #A042BB #BB4299
triadic
#A042BB #BBA042 #42BBA0
tetradic
#A042BB #BB6442 #5DBB42 #4299BB
square
#A042BB #BB6442 #5DBB42 #4299BB
split-complementary
#A042BB #99BB42 #42BB64
monochromatic
#532261 #79328E #A042BB #B76ECC #CE9CDC

Accessibility & contrast

On white

5.26
#A042BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#A042BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042BB
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042BB#FFFFFF#000000##FFFFFF
##A042BB1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1866BF
Deuteranopia (green-blind)
#476FB8
Tritanopia (blue-blind)
#9F5879
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a042bb;
/* rgb */ color: rgb(160, 66, 187);
/* oklch */ color: oklch(55.5% 0.195 317.9);
Tailwind
colors: {
  custom: {
    50: '#bf7dd0',
    500: '#a042bb',
    950: '#000000',
  },
}
SCSS
$custom: #a042bb;
$custom-light: #bf7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#a042bb",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 286.612,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55535,
    "c": 0.19484,
    "h": 317.9
  },
  "luminance": 0.14958
}

Semantic roles & 50–950 ramp

primary
#A042BB
secondary
#9DC891
accent
#D7506F
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A042BB

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

Preview Lab → · Contrast checker → · Palette generator →

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