#A042CB#A042CB

#A042CB is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.6% C 0.210 H 313.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#A042CB
RGBrgb(160, 66, 203)
HSLhsl(281, 57%, 53%)
HSVhsv(281, 67%, 80%)
CMYKcmyk(21.2%, 67.5%, 0%, 20.4%)
CIE-LABlab(46.56, 59.95, -54.35)
CIE-LCHlch(46.56, 80.92, 317.81°)
OKLaboklab(56.55% 0.1439 -0.1532)
OKLCHoklch(56.55% 0.21 313.2)
XYZxyz(27.2230, 15.6826, 58.0813)
Luminance0.1568 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042CB #6DCB42
analogous
#5C42CB #A042CB #CB42B1
triadic
#A042CB #CBA042 #42CBA0
tetradic
#A042CB #CB5C42 #6DCB42 #42B1CB
square
#A042CB #CB5C42 #6DCB42 #42B1CB
split-complementary
#A042CB #B1CB42 #42CB5C
monochromatic
#592073 #7E2DA3 #A042CB #B872D8 #D0A2E5

Accessibility & contrast

On white

5.08
#A042CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#A042CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042CB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042CB#FFFFFF#000000##FFFFFF
##A042CB1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#3870C8
Tritanopia (blue-blind)
#9C5E81
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a042cb;
/* rgb */ color: rgb(160, 66, 203);
/* oklch */ color: oklch(56.6% 0.210 313.2);
Tailwind
colors: {
  custom: {
    50: '#c07ddb',
    500: '#a042cb',
    950: '#000000',
  },
}
SCSS
$custom: #a042cb;
$custom-light: #c07ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#a042cb",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 281.168,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56551,
    "c": 0.21016,
    "h": 313.2
  },
  "luminance": 0.15682
}

Semantic roles & 50–950 ramp

primary
#A042CB
secondary
#A9D297
accent
#E04878
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A042CB

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

Preview Lab → · Contrast checker → · Palette generator →

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