#A042D2#A042D2

#A042D2 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 57.0% C 0.217 H 311.3°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#A042D2
RGBrgb(160, 66, 210)
HSLhsl(279, 62%, 54%)
HSVhsv(279, 69%, 82%)
CMYKcmyk(23.8%, 68.6%, 0%, 17.6%)
CIE-LABlab(47.01, 61.42, -57.65)
CIE-LCHlch(47.01, 84.24, 316.81°)
OKLaboklab(57.02% 0.1433 -0.1628)
OKLCHoklch(57.02% 0.217 311.3)
XYZxyz(28.0761, 16.0238, 62.5742)
Luminance0.1602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042D2 #74D242
analogous
#5842D2 #A042D2 #D242BC
triadic
#A042D2 #D2A042 #42D2A0
tetradic
#A042D2 #D25842 #74D242 #42BCD2
square
#A042D2 #D25842 #74D242 #42BCD2
split-complementary
#A042D2 #BCD242 #42D258
monochromatic
#5B1E7C #8029AD #A042D2 #B973DE #D2A5EA

Accessibility & contrast

On white

4.99
#A042D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#A042D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042D2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042D2#FFFFFF#000000##FFFFFF
##A042D21.004.994.204.99
#FFFFFF4.991.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#3071CF
Tritanopia (blue-blind)
#9A6185
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a042d2;
/* rgb */ color: rgb(160, 66, 210);
/* oklch */ color: oklch(57.0% 0.217 311.3);
Tailwind
colors: {
  custom: {
    50: '#c07ee1',
    500: '#a042d2',
    950: '#000000',
  },
}
SCSS
$custom: #a042d2;
$custom-light: #c07ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#a042d2",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 279.167,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57017,
    "c": 0.21691,
    "h": 311.3
  },
  "luminance": 0.16023
}

Semantic roles & 50–950 ramp

primary
#A042D2
secondary
#AFD799
accent
#E5437B
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A042D2

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

Preview Lab → · Contrast checker → · Palette generator →

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