#A042BA#A042BA

#A042BA is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.5% C 0.194 H 318.2°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#A042BA
RGBrgb(160, 66, 186)
HSLhsl(287, 48%, 49%)
HSVhsv(287, 65%, 73%)
CMYKcmyk(14%, 64.5%, 0%, 27.1%)
CIE-LABlab(45.52, 56.50, -46.14)
CIE-LCHlch(45.52, 72.94, 320.76°)
OKLaboklab(55.47% 0.1447 -0.1291)
OKLCHoklch(55.47% 0.194 318.2)
XYZxyz(25.3071, 14.9163, 47.9909)
Luminance0.1492 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042BA #5CBA42
analogous
#6442BA #A042BA #BA4298
triadic
#A042BA #BAA042 #42BAA0
tetradic
#A042BA #BA6442 #5CBA42 #4298BA
square
#A042BA #BA6442 #5CBA42 #4298BA
split-complementary
#A042BA #98BA42 #42BA64
monochromatic
#522260 #79328D #A042BA #B76ECB #CD9BDB

Accessibility & contrast

On white

5.27
#A042BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#A042BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042BA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042BA#FFFFFF#000000##FFFFFF
##A042BA1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A66BE
Deuteranopia (green-blind)
#486FB7
Tritanopia (blue-blind)
#A05778
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a042ba;
/* rgb */ color: rgb(160, 66, 186);
/* oklch */ color: oklch(55.5% 0.194 318.2);
Tailwind
colors: {
  custom: {
    50: '#bf7dcf',
    500: '#a042ba',
    950: '#000000',
  },
}
SCSS
$custom: #a042ba;
$custom-light: #bf7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#a042ba",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 287,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.55474,
    "c": 0.1939,
    "h": 318.2
  },
  "luminance": 0.14915
}

Semantic roles & 50–950 ramp

primary
#A042BA
secondary
#9CC890
accent
#D7516E
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A042BA

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

Preview Lab → · Contrast checker → · Palette generator →

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