#A842BA#A842BA

#A842BA is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.5% C 0.198 H 321.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#A842BA
RGBrgb(168, 66, 186)
HSLhsl(291, 48%, 49%)
HSVhsv(291, 65%, 73%)
CMYKcmyk(9.7%, 64.5%, 0%, 27.1%)
CIE-LABlab(46.67, 58.39, -44.24)
CIE-LCHlch(46.67, 73.26, 322.85°)
OKLaboklab(56.54% 0.1542 -0.1233)
OKLCHoklch(56.54% 0.198 321.3)
XYZxyz(26.9586, 15.7678, 48.0683)
Luminance0.1577 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842BA #54BA42
analogous
#6C42BA #A842BA #BA4290
triadic
#A842BA #BAA842 #42BAA8
tetradic
#A842BA #BA6C42 #54BA42 #4290BA
square
#A842BA #BA6C42 #54BA42 #4290BA
split-complementary
#A842BA #90BA42 #42BA6C
monochromatic
#562260 #7F328D #A842BA #BD6ECB #D29BDB

Accessibility & contrast

On white

5.06
#A842BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#A842BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842BA
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842BA#FFFFFF#000000##FFFFFF
##A842BA1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2267BE
Deuteranopia (green-blind)
#4F72B7
Tritanopia (blue-blind)
#AA5678
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a842ba;
/* rgb */ color: rgb(168, 66, 186);
/* oklch */ color: oklch(56.5% 0.198 321.3);
Tailwind
colors: {
  custom: {
    50: '#c57ecf',
    500: '#a842ba',
    950: '#000000',
  },
}
SCSS
$custom: #a842ba;
$custom-light: #c57ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#a842ba",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 291,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56539,
    "c": 0.1975,
    "h": 321.3
  },
  "luminance": 0.15766
}

Semantic roles & 50–950 ramp

primary
#A842BA
secondary
#99C890
accent
#D75165
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A842BA

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

Preview Lab → · Contrast checker → · Palette generator →

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