#A645E2#A645E2

#A645E2 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 59.2% C 0.231 H 309.3°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#A645E2
RGBrgb(166, 69, 226)
HSLhsl(277, 73%, 58%)
HSVhsv(277, 69%, 89%)
CMYKcmyk(26.5%, 69.5%, 0%, 11.4%)
CIE-LABlab(49.32, 64.75, -63.00)
CIE-LCHlch(49.32, 90.34, 315.79°)
OKLaboklab(59.17% 0.1461 -0.1784)
OKLCHoklch(59.17% 0.231 309.3)
XYZxyz(31.5787, 17.8548, 73.7195)
Luminance0.1785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A645E2 #81E245
analogous
#5745E2 #A645E2 #E245CF
triadic
#A645E2 #E2A645 #45E2A6
tetradic
#A645E2 #E25745 #81E245 #45CFE2
square
#A645E2 #E25745 #81E245 #45CFE2
split-complementary
#A645E2 #CFE245 #45E257
monochromatic
#651795 #8920CA #A645E2 #BF7AEA #D9AFF3

Accessibility & contrast

On white

4.59
#A645E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#A645E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A645E2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A645E2#FFFFFF#000000##FFFFFF
##A645E21.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#2477DF
Tritanopia (blue-blind)
#9D688F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a645e2;
/* rgb */ color: rgb(166, 69, 226);
/* oklch */ color: oklch(59.2% 0.231 309.3);
Tailwind
colors: {
  custom: {
    50: '#c580ec',
    500: '#a645e2',
    950: '#000000',
  },
}
SCSS
$custom: #a645e2;
$custom-light: #c580ec;
$custom-dark: #000000;
JSON
{
  "hex": "#a645e2",
  "rgb": {
    "r": 166,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 277.07,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59173,
    "c": 0.23054,
    "h": 309.3
  },
  "luminance": 0.17854
}

Semantic roles & 50–950 ramp

primary
#A645E2
secondary
#BAE1A2
accent
#F0387E
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A645E2

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

Preview Lab → · Contrast checker → · Palette generator →

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