#A642B2#A642B2

#A642B2 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.8% C 0.189 H 323.3°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#A642B2
RGBrgb(166, 66, 178)
HSLhsl(294, 46%, 48%)
HSVhsv(294, 63%, 70%)
CMYKcmyk(6.7%, 62.9%, 0%, 30.2%)
CIE-LABlab(45.93, 56.41, -40.74)
CIE-LCHlch(45.93, 69.58, 324.16°)
OKLaboklab(55.8% 0.1517 -0.1132)
OKLCHoklch(55.8% 0.189 323.3)
XYZxyz(25.7092, 15.2192, 43.6943)
Luminance0.1522 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642B2 #4EB242
analogous
#6E42B2 #A642B2 #B24286
triadic
#A642B2 #B2A642 #42B2A6
tetradic
#A642B2 #B26E42 #4EB242 #4286B2
square
#A642B2 #B26E42 #4EB242 #4286B2
split-complementary
#A642B2 #86B242 #42B26E
monochromatic
#532159 #7C3185 #A642B2 #BE6AC8 #D196D8

Accessibility & contrast

On white

5.19
#A642B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#A642B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642B2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642B2#FFFFFF#000000##FFFFFF
##A642B21.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#5371AF
Tritanopia (blue-blind)
#A95374
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a642b2;
/* rgb */ color: rgb(166, 66, 178);
/* oklch */ color: oklch(55.8% 0.189 323.3);
Tailwind
colors: {
  custom: {
    50: '#c37dc9',
    500: '#a642b2',
    950: '#000000',
  },
}
SCSS
$custom: #a642b2;
$custom-light: #c37dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a642b2",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 293.571,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.55804,
    "c": 0.18931,
    "h": 323.3
  },
  "luminance": 0.15218
}

Semantic roles & 50–950 ramp

primary
#A642B2
secondary
#92C48C
accent
#D65260
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A642B2

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

Preview Lab → · Contrast checker → · Palette generator →

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