#A645B2#A645B2

#A645B2 is a mid, vivid purple. Relative luminance 0.156; OKLCH L 56.2% C 0.185 H 323.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#A645B2
RGBrgb(166, 69, 178)
HSLhsl(293, 44%, 48%)
HSVhsv(293, 61%, 70%)
CMYKcmyk(6.7%, 61.2%, 0%, 30.2%)
CIE-LABlab(46.42, 55.07, -39.97)
CIE-LCHlch(46.42, 68.05, 324.03°)
OKLaboklab(56.16% 0.1481 -0.111)
OKLCHoklch(56.16% 0.185 323.1)
XYZxyz(25.8891, 15.5790, 43.7542)
Luminance0.1558 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A645B2 #51B245
analogous
#6F45B2 #A645B2 #B24587
triadic
#A645B2 #B2A645 #45B2A6
tetradic
#A645B2 #B26F45 #51B245 #4587B2
square
#A645B2 #B26F45 #51B245 #4587B2
split-complementary
#A645B2 #87B245 #45B26F
monochromatic
#54235A #7D3486 #A645B2 #BD6EC7 #D19AD8

Accessibility & contrast

On white

5.10
#A645B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#A645B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A645B2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A645B2#FFFFFF#000000##FFFFFF
##A645B21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3067B5
Deuteranopia (green-blind)
#5572AF
Tritanopia (blue-blind)
#A95575
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a645b2;
/* rgb */ color: rgb(166, 69, 178);
/* oklch */ color: oklch(56.2% 0.185 323.1);
Tailwind
colors: {
  custom: {
    50: '#c37fc9',
    500: '#a645b2',
    950: '#000000',
  },
}
SCSS
$custom: #a645b2;
$custom-light: #c37fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a645b2",
  "rgb": {
    "r": 166,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 293.394,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.56156,
    "c": 0.18505,
    "h": 323.1
  },
  "luminance": 0.15578
}

Semantic roles & 50–950 ramp

primary
#A645B2
secondary
#95C48F
accent
#D45462
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A645B2

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

Preview Lab → · Contrast checker → · Palette generator →

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