#A842DB#A842DB

#A842DB is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.6% C 0.228 H 311.9°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#A842DB
RGBrgb(168, 66, 219)
HSLhsl(280, 68%, 56%)
HSVhsv(280, 70%, 86%)
CMYKcmyk(23.3%, 69.9%, 0%, 14.1%)
CIE-LABlab(48.68, 64.93, -60.04)
CIE-LCHlch(48.68, 88.44, 317.24°)
OKLaboklab(58.63% 0.1524 -0.1696)
OKLCHoklch(58.63% 0.228 311.9)
XYZxyz(30.8805, 17.3366, 68.7237)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842DB #75DB42
analogous
#5B42DB #A842DB #DB42C1
triadic
#A842DB #DBA842 #42DBA8
tetradic
#A842DB #DB5B42 #75DB42 #42C1DB
square
#A842DB #DB5B42 #75DB42 #42C1DB
split-complementary
#A842DB #C1DB42 #42DB5B
monochromatic
#641A89 #8924BC #A842DB #C075E5 #D7A9EF

Accessibility & contrast

On white

4.70
#A842DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A842DB
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842DB#FFFFFF#000000##FFFFFF
##A842DB1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#3076D8
Tritanopia (blue-blind)
#A2638A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a842db;
/* rgb */ color: rgb(168, 66, 219);
/* oklch */ color: oklch(58.6% 0.228 311.9);
Tailwind
colors: {
  custom: {
    50: '#c67fe7',
    500: '#a842db',
    950: '#000000',
  },
}
SCSS
$custom: #a842db;
$custom-light: #c67fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#a842db",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 280,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58627,
    "c": 0.22803,
    "h": 311.9
  },
  "luminance": 0.17336
}

Semantic roles & 50–950 ramp

primary
#A842DB
secondary
#B2DC9D
accent
#EB3D77
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A842DB

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

Preview Lab → · Contrast checker → · Palette generator →

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