#A645DC#A645DC

#A645DC is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.8% C 0.225 H 310.8°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#A645DC
RGBrgb(166, 69, 220)
HSLhsl(279, 68%, 57%)
HSVhsv(279, 69%, 86%)
CMYKcmyk(24.5%, 68.6%, 0%, 13.7%)
CIE-LABlab(48.92, 63.48, -60.23)
CIE-LCHlch(48.92, 87.51, 316.50°)
OKLaboklab(58.76% 0.1467 -0.1703)
OKLCHoklch(58.76% 0.225 310.8)
XYZxyz(30.7698, 17.5312, 69.4592)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A645DC #7BDC45
analogous
#5B45DC #A645DC #DC45C7
triadic
#A645DC #DCA645 #45DCA6
tetradic
#A645DC #DC5B45 #7BDC45 #45C7DC
square
#A645DC #DC5B45 #7BDC45 #45C7DC
split-complementary
#A645DC #C7DC45 #45DC5B
monochromatic
#641A8C #8824C0 #A645DC #BF79E6 #D7ACEF

Accessibility & contrast

On white

4.66
#A645DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#A645DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A645DC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A645DC#FFFFFF#000000##FFFFFF
##A645DC1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#2F76D9
Tritanopia (blue-blind)
#9F658C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a645dc;
/* rgb */ color: rgb(166, 69, 220);
/* oklch */ color: oklch(58.8% 0.225 310.8);
Tailwind
colors: {
  custom: {
    50: '#c580e8',
    500: '#a645dc',
    950: '#000000',
  },
}
SCSS
$custom: #a645dc;
$custom-light: #c580e8;
$custom-dark: #000000;
JSON
{
  "hex": "#a645dc",
  "rgb": {
    "r": 166,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 278.543,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58764,
    "c": 0.22477,
    "h": 310.8
  },
  "luminance": 0.17531
}

Semantic roles & 50–950 ramp

primary
#A645DC
secondary
#B6DDA0
accent
#EB3D7B
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A645DC

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

Preview Lab → · Contrast checker → · Palette generator →

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