#A642BC#A642BC

#A642BC is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.4% C 0.198 H 319.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#A642BC
RGBrgb(166, 66, 188)
HSLhsl(289, 48%, 50%)
HSVhsv(289, 65%, 74%)
CMYKcmyk(11.7%, 64.9%, 0%, 26.3%)
CIE-LABlab(46.49, 58.30, -45.70)
CIE-LCHlch(46.49, 74.08, 321.91°)
OKLaboklab(56.39% 0.1519 -0.1277)
OKLCHoklch(56.39% 0.198 319.9)
XYZxyz(26.7501, 15.6355, 49.1761)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642BC #58BC42
analogous
#6942BC #A642BC #BC4295
triadic
#A642BC #BCA642 #42BCA6
tetradic
#A642BC #BC6942 #58BC42 #4295BC
square
#A642BC #BC6942 #58BC42 #4295BC
split-complementary
#A642BC #95BC42 #42BC69
monochromatic
#562261 #7E328F #A642BC #BC6FCC #D19CDC

Accessibility & contrast

On white

5.09
#A642BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#A642BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642BC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642BC#FFFFFF#000000##FFFFFF
##A642BC1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67C0
Deuteranopia (green-blind)
#4C72B9
Tritanopia (blue-blind)
#A75779
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a642bc;
/* rgb */ color: rgb(166, 66, 188);
/* oklch */ color: oklch(56.4% 0.198 319.9);
Tailwind
colors: {
  custom: {
    50: '#c47dd1',
    500: '#a642bc',
    950: '#000000',
  },
}
SCSS
$custom: #a642bc;
$custom-light: #c47dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a642bc",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 289.18,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5639,
    "c": 0.1984,
    "h": 319.9
  },
  "luminance": 0.15634
}

Semantic roles & 50–950 ramp

primary
#A642BC
secondary
#9BC991
accent
#D85069
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A642BC

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

Preview Lab → · Contrast checker → · Palette generator →

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