#A842D7#A842D7

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

Color values

HEX#A842D7
RGBrgb(168, 66, 215)
HSLhsl(281, 65%, 55%)
HSVhsv(281, 69%, 84%)
CMYKcmyk(21.9%, 69.3%, 0%, 15.7%)
CIE-LABlab(48.42, 64.11, -58.18)
CIE-LCHlch(48.42, 86.57, 317.78°)
OKLaboklab(58.36% 0.1529 -0.1641)
OKLCHoklch(58.36% 0.224 313)
XYZxyz(30.3602, 17.1285, 65.9836)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842D7 #71D742
analogous
#5D42D7 #A842D7 #D742BB
triadic
#A842D7 #D7A842 #42D7A8
tetradic
#A842D7 #D75D42 #71D742 #42BBD7
square
#A842D7 #D75D42 #71D742 #42BBD7
split-complementary
#A842D7 #BBD742 #42D75D
monochromatic
#621C83 #8826B5 #A842D7 #BF75E2 #D7A7EC

Accessibility & contrast

On white

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

On black

4.43
#A842D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##A842D7#FFFFFF#000000##FFFFFF
##A842D71.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDB
Deuteranopia (green-blind)
#3575D4
Tritanopia (blue-blind)
#A36188
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a842d7;
/* rgb */ color: rgb(168, 66, 215);
/* oklch */ color: oklch(58.4% 0.224 313.0);
Tailwind
colors: {
  custom: {
    50: '#c67ee4',
    500: '#a842d7',
    950: '#000000',
  },
}
SCSS
$custom: #a842d7;
$custom-light: #c67ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#a842d7",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 281.074,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5836,
    "c": 0.22429,
    "h": 313
  },
  "luminance": 0.17128
}

Semantic roles & 50–950 ramp

primary
#A842D7
secondary
#AFDA9B
accent
#E84075
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A842D7

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

Preview Lab → · Contrast checker → · Palette generator →

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