#A642DB#A642DB

#A642DB is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 58.4% C 0.227 H 311.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#A642DB
RGBrgb(166, 66, 219)
HSLhsl(279, 68%, 56%)
HSVhsv(279, 70%, 86%)
CMYKcmyk(24.2%, 69.9%, 0%, 14.1%)
CIE-LABlab(48.41, 64.53, -60.49)
CIE-LCHlch(48.41, 88.45, 316.85°)
OKLaboklab(58.38% 0.1499 -0.171)
OKLCHoklch(58.38% 0.227 311.2)
XYZxyz(30.4579, 17.1186, 68.7039)
Luminance0.1712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A642DB #77DB42
analogous
#5942DB #A642DB #DB42C3
triadic
#A642DB #DBA642 #42DBA6
tetradic
#A642DB #DB5942 #77DB42 #42C3DB
square
#A642DB #DB5942 #77DB42 #42C3DB
split-complementary
#A642DB #C3DB42 #42DB59
monochromatic
#621A89 #8724BC #A642DB #BE75E5 #D6A9EF

Accessibility & contrast

On white

4.75
#A642DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#A642DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A642DB
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A642DB#FFFFFF#000000##FFFFFF
##A642DB1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#2C75D8
Tritanopia (blue-blind)
#9F638A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a642db;
/* rgb */ color: rgb(166, 66, 219);
/* oklch */ color: oklch(58.4% 0.227 311.2);
Tailwind
colors: {
  custom: {
    50: '#c57ee7',
    500: '#a642db',
    950: '#000000',
  },
}
SCSS
$custom: #a642db;
$custom-light: #c57ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#a642db",
  "rgb": {
    "r": 166,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 279.216,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58377,
    "c": 0.22741,
    "h": 311.2
  },
  "luminance": 0.17118
}

Semantic roles & 50–950 ramp

primary
#A642DB
secondary
#B3DC9D
accent
#EB3D79
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A642DB

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

Preview Lab → · Contrast checker → · Palette generator →

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