#A042DE#A042DE

#A042DE is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.8% C 0.229 H 308.4°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#A042DE
RGBrgb(160, 66, 222)
HSLhsl(276, 70%, 56%)
HSVhsv(276, 70%, 87%)
CMYKcmyk(27.9%, 70.3%, 0%, 12.9%)
CIE-LABlab(47.81, 63.98, -63.21)
CIE-LCHlch(47.81, 89.94, 315.35°)
OKLaboklab(57.85% 0.1419 -0.1792)
OKLCHoklch(57.85% 0.229 308.4)
XYZxyz(29.6275, 16.6444, 70.7450)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042DE #80DE42
analogous
#5242DE #A042DE #DE42CE
triadic
#A042DE #DEA042 #42DEA0
tetradic
#A042DE #DE5242 #80DE42 #42CEDE
square
#A042DE #DE5242 #80DE42 #42CEDE
split-complementary
#A042DE #CEDE42 #42DE52
monochromatic
#5F198D #8222C1 #A042DE #BA76E7 #D4AAF0

Accessibility & contrast

On white

4.85
#A042DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#A042DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042DE
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042DE#FFFFFF#000000##FFFFFF
##A042DE1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE3
Deuteranopia (green-blind)
#1972DB
Tritanopia (blue-blind)
#96658C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a042de;
/* rgb */ color: rgb(160, 66, 222);
/* oklch */ color: oklch(57.8% 0.229 308.4);
Tailwind
colors: {
  custom: {
    50: '#c17ee9',
    500: '#a042de',
    950: '#000000',
  },
}
SCSS
$custom: #a042de;
$custom-light: #c17ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#a042de",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 276.154,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57845,
    "c": 0.22853,
    "h": 308.4
  },
  "luminance": 0.16644
}

Semantic roles & 50–950 ramp

primary
#A042DE
secondary
#B7DE9E
accent
#ED3B82
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A042DE

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

Preview Lab → · Contrast checker → · Palette generator →

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