#A642E7#A642E7

#A642E7 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 59.2% C 0.239 H 308.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#A642E7
RGBrgb(166, 66, 231)
HSLhsl(276, 77%, 58%)
HSVhsv(276, 71%, 91%)
CMYKcmyk(28.1%, 71.4%, 0%, 9.4%)
CIE-LABlab(49.22, 67.06, -65.99)
CIE-LCHlch(49.22, 94.08, 315.46°)
OKLaboklab(59.21% 0.1483 -0.1871)
OKLCHoklch(59.21% 0.239 308.4)
XYZxyz(32.0949, 17.7735, 77.3257)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642E7 #83E742
analogous
#5342E7 #A642E7 #E742D5
triadic
#A642E7 #E7A642 #42E7A6
tetradic
#A642E7 #E75342 #83E742 #42D5E7
square
#A642E7 #E75342 #83E742 #42D5E7
split-complementary
#A642E7 #D5E742 #42E753
monochromatic
#66149B #891BD1 #A642E7 #C078EE #D9AFF5

Accessibility & contrast

On white

4.61
#A642E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#A642E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A642E7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642E7#FFFFFF#000000##FFFFFF
##A642E71.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EC
Deuteranopia (green-blind)
#0F76E4
Tritanopia (blue-blind)
#9C6891
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a642e7;
/* rgb */ color: rgb(166, 66, 231);
/* oklch */ color: oklch(59.2% 0.239 308.4);
Tailwind
colors: {
  custom: {
    50: '#c67ff0',
    500: '#a642e7',
    950: '#000000',
  },
}
SCSS
$custom: #a642e7;
$custom-light: #c67ff0;
$custom-dark: #000000;
JSON
{
  "hex": "#a642e7",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 276.364,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.5921,
    "c": 0.23877,
    "h": 308.4
  },
  "luminance": 0.17773
}

Semantic roles & 50–950 ramp

primary
#A642E7
secondary
#BBE3A2
accent
#F43480
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #A642E7

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

Preview Lab → · Contrast checker → · Palette generator →

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