#A042D1#A042D1

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

Color values

HEX#A042D1
RGBrgb(160, 66, 209)
HSLhsl(279, 61%, 54%)
HSVhsv(279, 68%, 82%)
CMYKcmyk(23.4%, 68.4%, 0%, 18%)
CIE-LABlab(46.94, 61.21, -57.18)
CIE-LCHlch(46.94, 83.76, 316.95°)
OKLaboklab(56.95% 0.1434 -0.1615)
OKLCHoklch(56.95% 0.216 311.6)
XYZxyz(27.9519, 15.9742, 61.9201)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042D1 #73D142
analogous
#5942D1 #A042D1 #D142BA
triadic
#A042D1 #D1A042 #42D1A0
tetradic
#A042D1 #D15942 #73D142 #42BAD1
square
#A042D1 #D15942 #73D142 #42BAD1
split-complementary
#A042D1 #BAD142 #42D159
monochromatic
#5B1E7B #7F2AAC #A042D1 #B973DD #D1A4E9

Accessibility & contrast

On white

5.01
#A042D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#A042D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042D1
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042D1#FFFFFF#000000##FFFFFF
##A042D11.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD5
Deuteranopia (green-blind)
#3171CE
Tritanopia (blue-blind)
#9A6085
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a042d1;
/* rgb */ color: rgb(160, 66, 209);
/* oklch */ color: oklch(57.0% 0.216 311.6);
Tailwind
colors: {
  custom: {
    50: '#c07ee0',
    500: '#a042d1',
    950: '#000000',
  },
}
SCSS
$custom: #a042d1;
$custom-light: #c07ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#a042d1",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 279.441,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5695,
    "c": 0.21594,
    "h": 311.6
  },
  "luminance": 0.15973
}

Semantic roles & 50–950 ramp

primary
#A042D1
secondary
#AED699
accent
#E4447B
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A042D1

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

Preview Lab → · Contrast checker → · Palette generator →

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