#A642E2#A642E2

#A642E2 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.9% C 0.234 H 309.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#A642E2
RGBrgb(166, 66, 226)
HSLhsl(278, 73%, 57%)
HSVhsv(278, 71%, 89%)
CMYKcmyk(26.5%, 70.8%, 0%, 11.4%)
CIE-LABlab(48.88, 66.00, -63.71)
CIE-LCHlch(48.88, 91.73, 316.01°)
OKLaboklab(58.86% 0.149 -0.1805)
OKLCHoklch(58.86% 0.234 309.5)
XYZxyz(31.3988, 17.4950, 73.6596)
Luminance0.1749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642E2 #7EE242
analogous
#5642E2 #A642E2 #E242CE
triadic
#A642E2 #E2A642 #42E2A6
tetradic
#A642E2 #E25642 #7EE242 #42CEE2
square
#A642E2 #E25642 #7EE242 #42CEE2
split-complementary
#A642E2 #CEE242 #42E256
monochromatic
#641793 #891FC8 #A642E2 #BF77EA #D8ACF2

Accessibility & contrast

On white

4.67
#A642E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#A642E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A642E2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642E2#FFFFFF#000000##FFFFFF
##A642E21.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#1F75DF
Tritanopia (blue-blind)
#9D668E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a642e2;
/* rgb */ color: rgb(166, 66, 226);
/* oklch */ color: oklch(58.9% 0.234 309.5);
Tailwind
colors: {
  custom: {
    50: '#c57fec',
    500: '#a642e2',
    950: '#000000',
  },
}
SCSS
$custom: #a642e2;
$custom-light: #c57fec;
$custom-dark: #000000;
JSON
{
  "hex": "#a642e2",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 277.5,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.58859,
    "c": 0.23403,
    "h": 309.5
  },
  "luminance": 0.17494
}

Semantic roles & 50–950 ramp

primary
#A642E2
secondary
#B8E09F
accent
#F0387D
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A642E2

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

Preview Lab → · Contrast checker → · Palette generator →

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