#A042DD#A042DD

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

Color values

HEX#A042DD
RGBrgb(160, 66, 221)
HSLhsl(276, 70%, 56%)
HSVhsv(276, 70%, 87%)
CMYKcmyk(27.6%, 70.1%, 0%, 13.3%)
CIE-LABlab(47.74, 63.76, -62.75)
CIE-LCHlch(47.74, 89.46, 315.46°)
OKLaboklab(57.77% 0.142 -0.1778)
OKLCHoklch(57.77% 0.228 308.6)
XYZxyz(29.4939, 16.5910, 70.0412)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042DD #7FDD42
analogous
#5342DD #A042DD #DD42CD
triadic
#A042DD #DDA042 #42DDA0
tetradic
#A042DD #DD5342 #7FDD42 #42CDDD
square
#A042DD #DD5342 #7FDD42 #42CDDD
split-complementary
#A042DD #CDDD42 #42DD53
monochromatic
#5E198C #8222BF #A042DD #BA76E6 #D4AAF0

Accessibility & contrast

On white

4.86
#A042DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#A042DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042DD
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042DD#FFFFFF#000000##FFFFFF
##A042DD1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE1
Deuteranopia (green-blind)
#1B72DA
Tritanopia (blue-blind)
#97658B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a042dd;
/* rgb */ color: rgb(160, 66, 221);
/* oklch */ color: oklch(57.8% 0.228 308.6);
Tailwind
colors: {
  custom: {
    50: '#c17ee8',
    500: '#a042dd',
    950: '#000000',
  },
}
SCSS
$custom: #a042dd;
$custom-light: #c17ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#a042dd",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 276.387,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.57774,
    "c": 0.22756,
    "h": 308.6
  },
  "luminance": 0.1659
}

Semantic roles & 50–950 ramp

primary
#A042DD
secondary
#B7DD9D
accent
#EC3B81
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A042DD

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

Preview Lab → · Contrast checker → · Palette generator →

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