#A042DF#A042DF

#A042DF is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.9% C 0.230 H 308.1°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#A042DF
RGBrgb(160, 66, 223)
HSLhsl(276, 71%, 57%)
HSVhsv(276, 70%, 87%)
CMYKcmyk(28.3%, 70.4%, 0%, 12.5%)
CIE-LABlab(47.88, 64.20, -63.67)
CIE-LCHlch(47.88, 90.41, 315.24°)
OKLaboklab(57.92% 0.1417 -0.1805)
OKLCHoklch(57.92% 0.23 308.1)
XYZxyz(29.7619, 16.6982, 71.4529)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042DF #81DF42
analogous
#5242DF #A042DF #DF42CF
triadic
#A042DF #DFA042 #42DFA0
tetradic
#A042DF #DF5242 #81DF42 #42CFDF
square
#A042DF #DF5242 #81DF42 #42CFDF
split-complementary
#A042DF #CFDF42 #42DF52
monochromatic
#5F188E #8221C3 #A042DF #BA76E8 #D5ABF1

Accessibility & contrast

On white

4.84
#A042DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#A042DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042DF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042DF#FFFFFF#000000##FFFFFF
##A042DF1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE4
Deuteranopia (green-blind)
#1673DC
Tritanopia (blue-blind)
#96668C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a042df;
/* rgb */ color: rgb(160, 66, 223);
/* oklch */ color: oklch(57.9% 0.230 308.1);
Tailwind
colors: {
  custom: {
    50: '#c17eea',
    500: '#a042df',
    950: '#000000',
  },
}
SCSS
$custom: #a042df;
$custom-light: #c17eea;
$custom-dark: #000000;
JSON
{
  "hex": "#a042df",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 275.924,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57915,
    "c": 0.2295,
    "h": 308.1
  },
  "luminance": 0.16698
}

Semantic roles & 50–950 ramp

primary
#A042DF
secondary
#B8DF9E
accent
#EE3A82
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A042DF

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

Preview Lab → · Contrast checker → · Palette generator →

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