#A645D9#A645D9

#A645D9 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.6% C 0.222 H 311.5°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#A645D9
RGBrgb(166, 69, 217)
HSLhsl(279, 66%, 56%)
HSVhsv(279, 68%, 85%)
CMYKcmyk(23.5%, 68.2%, 0%, 14.9%)
CIE-LABlab(48.73, 62.85, -58.84)
CIE-LCHlch(48.73, 86.09, 316.89°)
OKLaboklab(58.56% 0.147 -0.1662)
OKLCHoklch(58.56% 0.222 311.5)
XYZxyz(30.3761, 17.3737, 67.3855)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A645D9 #78D945
analogous
#5C45D9 #A645D9 #D945C2
triadic
#A645D9 #D9A645 #45D9A6
tetradic
#A645D9 #D95C45 #78D945 #45C2D9
square
#A645D9 #D95C45 #78D945 #45C2D9
split-complementary
#A645D9 #C2D945 #45D95C
monochromatic
#631C88 #8726BB #A645D9 #BE78E3 #D7ABEE

Accessibility & contrast

On white

4.69
#A645D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#A645D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A645D9
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A645D9#FFFFFF#000000##FFFFFF
##A645D91.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#3376D6
Tritanopia (blue-blind)
#A0648A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a645d9;
/* rgb */ color: rgb(166, 69, 217);
/* oklch */ color: oklch(58.6% 0.222 311.5);
Tailwind
colors: {
  custom: {
    50: '#c580e5',
    500: '#a645d9',
    950: '#000000',
  },
}
SCSS
$custom: #a645d9;
$custom-light: #c580e5;
$custom-dark: #000000;
JSON
{
  "hex": "#a645d9",
  "rgb": {
    "r": 166,
    "g": 69,
    "b": 217
  },
  "hsl": {
    "h": 279.324,
    "s": 66.071,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58563,
    "c": 0.22188,
    "h": 311.5
  },
  "luminance": 0.17373
}

Semantic roles & 50–950 ramp

primary
#A645D9
secondary
#B3DB9E
accent
#E93F79
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A645D9

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

Preview Lab → · Contrast checker → · Palette generator →

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