#A042D6#A042D6

#A042D6 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 57.3% C 0.221 H 310.3°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#A042D6
RGBrgb(160, 66, 214)
HSLhsl(278, 64%, 55%)
HSVhsv(278, 69%, 84%)
CMYKcmyk(25.2%, 69.2%, 0%, 16.1%)
CIE-LABlab(47.27, 62.26, -59.52)
CIE-LCHlch(47.27, 86.13, 316.29°)
OKLaboklab(57.29% 0.1429 -0.1683)
OKLCHoklch(57.29% 0.221 310.3)
XYZxyz(28.5807, 16.2257, 65.2316)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042D6 #78D642
analogous
#5642D6 #A042D6 #D642C2
triadic
#A042D6 #D6A042 #42D6A0
tetradic
#A042D6 #D65642 #78D642 #42C2D6
square
#A042D6 #D65642 #78D642 #42C2D6
split-complementary
#A042D6 #C2D642 #42D656
monochromatic
#5D1C82 #8027B4 #A042D6 #B974E1 #D3A7EC

Accessibility & contrast

On white

4.95
#A042D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#A042D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042D6
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042D6#FFFFFF#000000##FFFFFF
##A042D61.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#2A72D3
Tritanopia (blue-blind)
#996287
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #a042d6;
/* rgb */ color: rgb(160, 66, 214);
/* oklch */ color: oklch(57.3% 0.221 310.3);
Tailwind
colors: {
  custom: {
    50: '#c17ee3',
    500: '#a042d6',
    950: '#000000',
  },
}
SCSS
$custom: #a042d6;
$custom-light: #c17ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#a042d6",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 278.108,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.57289,
    "c": 0.22078,
    "h": 310.3
  },
  "luminance": 0.16225
}

Semantic roles & 50–950 ramp

primary
#A042D6
secondary
#B1D99B
accent
#E7407D
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A042D6

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

Preview Lab → · Contrast checker → · Palette generator →

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