#A842EA#A842EA

#A842EA is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 59.7% C 0.242 H 308.4°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#A842EA
RGBrgb(168, 66, 234)
HSLhsl(276, 80%, 59%)
HSVhsv(276, 72%, 92%)
CMYKcmyk(28.2%, 71.8%, 0%, 8.2%)
CIE-LABlab(49.69, 68.07, -66.90)
CIE-LCHlch(49.69, 95.44, 315.49°)
OKLaboklab(59.67% 0.1504 -0.1898)
OKLCHoklch(59.67% 0.242 308.4)
XYZxyz(32.9449, 18.1623, 79.5961)
Luminance0.1816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842EA #84EA42
analogous
#5442EA #A842EA #EA42D8
triadic
#A842EA #EAA842 #42EAA8
tetradic
#A842EA #EA5442 #84EA42 #42D8EA
square
#A842EA #EA5442 #84EA42 #42D8EA
split-complementary
#A842EA #D8EA42 #42EA54
monochromatic
#6812A0 #8C18D7 #A842EA #C179F0 #DBB0F6

Accessibility & contrast

On white

4.53
#A842EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#A842EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A842EA
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842EA#FFFFFF#000000##000000
##A842EA1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#0A77E6
Tritanopia (blue-blind)
#9E6992
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #a842ea;
/* rgb */ color: rgb(168, 66, 234);
/* oklch */ color: oklch(59.7% 0.242 308.4);
Tailwind
colors: {
  custom: {
    50: '#c77ff2',
    500: '#a842ea',
    950: '#000000',
  },
}
SCSS
$custom: #a842ea;
$custom-light: #c77ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#a842ea",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 234
  },
  "hsl": {
    "h": 276.429,
    "s": 80,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59666,
    "c": 0.24214,
    "h": 308.4
  },
  "luminance": 0.18162
}

Semantic roles & 50–950 ramp

primary
#A842EA
secondary
#BDE5A3
accent
#F6317F
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B17
muted
#827C85

Preview Lab

Preview with #A842EA

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

Preview Lab → · Contrast checker → · Palette generator →

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