#A842E2#A842E2

#A842E2 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 59.1% C 0.235 H 310.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#A842E2
RGBrgb(168, 66, 226)
HSLhsl(278, 73%, 57%)
HSVhsv(278, 71%, 89%)
CMYKcmyk(25.7%, 70.8%, 0%, 11.4%)
CIE-LABlab(49.15, 66.39, -63.27)
CIE-LCHlch(49.15, 91.70, 316.38°)
OKLaboklab(59.11% 0.1516 -0.1791)
OKLCHoklch(59.11% 0.235 310.2)
XYZxyz(31.8215, 17.7129, 73.6794)
Luminance0.1771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A842E2 #7CE242
analogous
#5842E2 #A842E2 #E242CC
triadic
#A842E2 #E2A842 #42E2A8
tetradic
#A842E2 #E25842 #7CE242 #42CCE2
square
#A842E2 #E25842 #7CE242 #42CCE2
split-complementary
#A842E2 #CCE242 #42E258
monochromatic
#661793 #8B1FC8 #A842E2 #C077EA #D9ACF2

Accessibility & contrast

On white

4.62
#A842E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#A842E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #A842E2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A842E2#FFFFFF#000000##FFFFFF
##A842E21.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#2476DF
Tritanopia (blue-blind)
#A0668E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #a842e2;
/* rgb */ color: rgb(168, 66, 226);
/* oklch */ color: oklch(59.1% 0.235 310.2);
Tailwind
colors: {
  custom: {
    50: '#c77fec',
    500: '#a842e2',
    950: '#000000',
  },
}
SCSS
$custom: #a842e2;
$custom-light: #c77fec;
$custom-dark: #000000;
JSON
{
  "hex": "#a842e2",
  "rgb": {
    "r": 168,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 278.25,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.59106,
    "c": 0.23461,
    "h": 310.2
  },
  "luminance": 0.17712
}

Semantic roles & 50–950 ramp

primary
#A842E2
secondary
#B7E09F
accent
#F0387B
background
#FCF8FE
surface
#F9EFFD
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #A842E2

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

Preview Lab → · Contrast checker → · Palette generator →

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