#A645C2#A645C2

#A645C2 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.1% C 0.200 H 317.9°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#A645C2
RGBrgb(166, 69, 194)
HSLhsl(287, 51%, 52%)
HSVhsv(287, 64%, 76%)
CMYKcmyk(14.4%, 64.4%, 0%, 23.9%)
CIE-LABlab(47.31, 58.16, -47.88)
CIE-LCHlch(47.31, 75.34, 320.54°)
OKLaboklab(57.09% 0.1483 -0.1341)
OKLCHoklch(57.09% 0.2 317.9)
XYZxyz(27.5902, 16.2594, 52.7135)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A645C2 #61C245
analogous
#6845C2 #A645C2 #C245A0
triadic
#A645C2 #C2A645 #45C2A6
tetradic
#A645C2 #C26845 #61C245 #45A0C2
square
#A645C2 #C26845 #61C245 #45A0C2
split-complementary
#A645C2 #A0C245 #45C268
monochromatic
#5A236A #813298 #A645C2 #BC73D1 #D2A1E0

Accessibility & contrast

On white

4.94
#A645C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#A645C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A645C2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A645C2#FFFFFF#000000##FFFFFF
##A645C21.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A6AC6
Deuteranopia (green-blind)
#4A73BF
Tritanopia (blue-blind)
#A55B7E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a645c2;
/* rgb */ color: rgb(166, 69, 194);
/* oklch */ color: oklch(57.1% 0.200 317.9);
Tailwind
colors: {
  custom: {
    50: '#c47fd5',
    500: '#a645c2',
    950: '#000000',
  },
}
SCSS
$custom: #a645c2;
$custom-light: #c47fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#a645c2",
  "rgb": {
    "r": 166,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 286.56,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.57094,
    "c": 0.19994,
    "h": 317.9
  },
  "luminance": 0.16258
}

Semantic roles & 50–950 ramp

primary
#A645C2
secondary
#A2CD96
accent
#DA4E6D
background
#FCF8FD
surface
#F8EFFA
border
#D1CAD3
text
#130B14
muted
#827C83

Preview Lab

Preview with #A645C2

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

Preview Lab → · Contrast checker → · Palette generator →

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