#A042CF#A042CF

#A042CF is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.8% C 0.214 H 312.1°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#A042CF
RGBrgb(160, 66, 207)
HSLhsl(280, 59%, 54%)
HSVhsv(280, 68%, 81%)
CMYKcmyk(22.7%, 68.1%, 0%, 18.8%)
CIE-LABlab(46.81, 60.79, -56.24)
CIE-LCHlch(46.81, 82.81, 317.22°)
OKLaboklab(56.82% 0.1436 -0.1587)
OKLCHoklch(56.82% 0.214 312.1)
XYZxyz(27.7059, 15.8757, 60.6242)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042CF #71CF42
analogous
#5942CF #A042CF #CF42B7
triadic
#A042CF #CFA042 #42CFA0
tetradic
#A042CF #CF5942 #71CF42 #42B7CF
square
#A042CF #CF5942 #71CF42 #42B7CF
split-complementary
#A042CF #B7CF42 #42CF59
monochromatic
#5A1F78 #7F2BA9 #A042CF #B973DB #D1A4E8

Accessibility & contrast

On white

5.03
#A042CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#A042CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042CF
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042CF#FFFFFF#000000##FFFFFF
##A042CF1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD3
Deuteranopia (green-blind)
#3471CC
Tritanopia (blue-blind)
#9B5F84
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a042cf;
/* rgb */ color: rgb(160, 66, 207);
/* oklch */ color: oklch(56.8% 0.214 312.1);
Tailwind
colors: {
  custom: {
    50: '#c07dde',
    500: '#a042cf',
    950: '#000000',
  },
}
SCSS
$custom: #a042cf;
$custom-light: #c07dde;
$custom-dark: #000000;
JSON
{
  "hex": "#a042cf",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 280,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.56816,
    "c": 0.21401,
    "h": 312.1
  },
  "luminance": 0.15875
}

Semantic roles & 50–950 ramp

primary
#A042CF
secondary
#ACD598
accent
#E3457A
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A042CF

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

Preview Lab → · Contrast checker → · Palette generator →

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