#A842BC#A842BC

#A842BC is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.7% C 0.199 H 320.7°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#A842BC
RGBrgb(168, 66, 188)
HSLhsl(290, 48%, 50%)
HSVhsv(290, 65%, 74%)
CMYKcmyk(10.6%, 64.9%, 0%, 26.3%)
CIE-LABlab(46.78, 58.77, -45.22)
CIE-LCHlch(46.78, 74.16, 322.42°)
OKLaboklab(56.66% 0.1543 -0.1262)
OKLCHoklch(56.66% 0.199 320.7)
XYZxyz(27.1727, 15.8534, 49.1959)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842BC #56BC42
analogous
#6B42BC #A842BC #BC4293
triadic
#A842BC #BCA842 #42BCA8
tetradic
#A842BC #BC6B42 #56BC42 #4293BC
square
#A842BC #BC6B42 #56BC42 #4293BC
split-complementary
#A842BC #93BC42 #42BC6B
monochromatic
#572261 #80328F #A842BC #BD6FCC #D29CDC

Accessibility & contrast

On white

5.04
#A842BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#A842BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842BC
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842BC#FFFFFF#000000##FFFFFF
##A842BC1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F68C0
Deuteranopia (green-blind)
#4E73B9
Tritanopia (blue-blind)
#A95779
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a842bc;
/* rgb */ color: rgb(168, 66, 188);
/* oklch */ color: oklch(56.7% 0.199 320.7);
Tailwind
colors: {
  custom: {
    50: '#c57ed1',
    500: '#a842bc',
    950: '#000000',
  },
}
SCSS
$custom: #a842bc;
$custom-light: #c57ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#a842bc",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 290.164,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.56657,
    "c": 0.19931,
    "h": 320.7
  },
  "luminance": 0.15852
}

Semantic roles & 50–950 ramp

primary
#A842BC
secondary
#9AC991
accent
#D85066
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A842BC

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

Preview Lab → · Contrast checker → · Palette generator →

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