#A042B1#A042B1

#A042B1 is a mid, vivid purple. Relative luminance 0.145; OKLCH L 54.9% C 0.185 H 321.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#A042B1
RGBrgb(160, 66, 177)
HSLhsl(291, 46%, 48%)
HSVhsv(291, 63%, 69%)
CMYKcmyk(9.6%, 62.7%, 0%, 30.6%)
CIE-LABlab(45.01, 54.74, -41.68)
CIE-LCHlch(45.01, 68.80, 322.71°)
OKLaboklab(54.94% 0.1446 -0.1161)
OKLCHoklch(54.94% 0.185 321.2)
XYZxyz(24.3803, 14.5455, 43.1098)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042B1 #53B142
analogous
#6942B1 #A042B1 #B1428A
triadic
#A042B1 #B1A042 #42B1A0
tetradic
#A042B1 #B16942 #53B142 #428AB1
square
#A042B1 #B16942 #53B142 #428AB1
split-complementary
#A042B1 #8AB142 #42B169
monochromatic
#4F2158 #783184 #A042B1 #B969C7 #CE96D8

Accessibility & contrast

On white

5.37
#A042B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#A042B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042B1
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042B1#FFFFFF#000000##FFFFFF
##A042B11.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2864B4
Deuteranopia (green-blind)
#4E6EAE
Tritanopia (blue-blind)
#A15473
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #a042b1;
/* rgb */ color: rgb(160, 66, 177);
/* oklch */ color: oklch(54.9% 0.185 321.2);
Tailwind
colors: {
  custom: {
    50: '#bf7dc9',
    500: '#a042b1',
    950: '#000000',
  },
}
SCSS
$custom: #a042b1;
$custom-light: #bf7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a042b1",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 290.811,
    "s": 45.679,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54936,
    "c": 0.18544,
    "h": 321.2
  },
  "luminance": 0.14544
}

Semantic roles & 50–950 ramp

primary
#A042B1
secondary
#94C38B
accent
#D55266
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A042B1

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

Preview Lab → · Contrast checker → · Palette generator →

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