#A645B7#A645B7

#A645B7 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.4% C 0.190 H 321.4°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#A645B7
RGBrgb(166, 69, 183)
HSLhsl(291, 45%, 49%)
HSVhsv(291, 62%, 72%)
CMYKcmyk(9.3%, 62.3%, 0%, 28.2%)
CIE-LABlab(46.69, 56.02, -42.47)
CIE-LCHlch(46.69, 70.30, 322.83°)
OKLaboklab(56.44% 0.1483 -0.1183)
OKLCHoklch(56.44% 0.19 321.4)
XYZxyz(26.4003, 15.7834, 46.4465)
Luminance0.1578 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A645B7 #56B745
analogous
#6D45B7 #A645B7 #B7458F
triadic
#A645B7 #B7A645 #45B7A6
tetradic
#A645B7 #B76D45 #56B745 #458FB7
square
#A645B7 #B76D45 #56B745 #458FB7
split-complementary
#A645B7 #8FB745 #45B76D
monochromatic
#55235E #7E348B #A645B7 #BC70C9 #D19DDA

Accessibility & contrast

On white

5.05
#A645B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#A645B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A645B7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A645B7#FFFFFF#000000##FFFFFF
##A645B71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B68BA
Deuteranopia (green-blind)
#5272B4
Tritanopia (blue-blind)
#A85778
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a645b7;
/* rgb */ color: rgb(166, 69, 183);
/* oklch */ color: oklch(56.4% 0.190 321.4);
Tailwind
colors: {
  custom: {
    50: '#c37fcd',
    500: '#a645b7',
    950: '#000000',
  },
}
SCSS
$custom: #a645b7;
$custom-light: #c37fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#a645b7",
  "rgb": {
    "r": 166,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 291.053,
    "s": 45.238,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56441,
    "c": 0.18965,
    "h": 321.4
  },
  "luminance": 0.15782
}

Semantic roles & 50–950 ramp

primary
#A645B7
secondary
#99C692
accent
#D55366
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A13
muted
#827C82

Preview Lab

Preview with #A645B7

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

Preview Lab → · Contrast checker → · Palette generator →

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