#A842DD#A842DD

#A842DD is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.8% C 0.230 H 311.5°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#A842DD
RGBrgb(168, 66, 221)
HSLhsl(279, 70%, 56%)
HSVhsv(279, 70%, 87%)
CMYKcmyk(24%, 70.1%, 0%, 13.3%)
CIE-LABlab(48.81, 65.35, -60.97)
CIE-LCHlch(48.81, 89.37, 316.99°)
OKLaboklab(58.76% 0.1522 -0.1723)
OKLCHoklch(58.76% 0.23 311.5)
XYZxyz(31.1454, 17.4425, 70.1186)
Luminance0.1744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842DD #77DD42
analogous
#5B42DD #A842DD #DD42C5
triadic
#A842DD #DDA842 #42DDA8
tetradic
#A842DD #DD5B42 #77DD42 #42C5DD
square
#A842DD #DD5B42 #77DD42 #42C5DD
split-complementary
#A842DD #C5DD42 #42DD5B
monochromatic
#64198C #8A22BF #A842DD #C076E6 #D8AAF0

Accessibility & contrast

On white

4.68
#A842DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#A842DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A842DD
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842DD#FFFFFF#000000##FFFFFF
##A842DD1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#2D76DA
Tritanopia (blue-blind)
#A1648B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #a842dd;
/* rgb */ color: rgb(168, 66, 221);
/* oklch */ color: oklch(58.8% 0.230 311.5);
Tailwind
colors: {
  custom: {
    50: '#c67fe8',
    500: '#a842dd',
    950: '#000000',
  },
}
SCSS
$custom: #a842dd;
$custom-light: #c67fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#a842dd",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 279.484,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58763,
    "c": 0.22992,
    "h": 311.5
  },
  "luminance": 0.17442
}

Semantic roles & 50–950 ramp

primary
#A842DD
secondary
#B3DD9D
accent
#EC3B78
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A842DD

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

Preview Lab → · Contrast checker → · Palette generator →

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