#A042B7#A042B7

#A042B7 is a mid, vivid purple. Relative luminance 0.148; OKLCH L 55.3% C 0.191 H 319.2°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#A042B7
RGBrgb(160, 66, 183)
HSLhsl(288, 47%, 49%)
HSVhsv(288, 64%, 72%)
CMYKcmyk(12.6%, 63.9%, 0%, 28.2%)
CIE-LABlab(45.35, 55.90, -44.66)
CIE-LCHlch(45.35, 71.55, 321.38°)
OKLaboklab(55.29% 0.1447 -0.1248)
OKLCHoklch(55.29% 0.191 319.2)
XYZxyz(24.9916, 14.7900, 46.3289)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042B7 #59B742
analogous
#6642B7 #A042B7 #B74294
triadic
#A042B7 #B7A042 #42B7A0
tetradic
#A042B7 #B76642 #59B742 #4294B7
square
#A042B7 #B76642 #59B742 #4294B7
split-complementary
#A042B7 #94B742 #42B766
monochromatic
#51225D #79328A #A042B7 #B86CCA #CD99DA

Accessibility & contrast

On white

5.31
#A042B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#A042B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042B7
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042B7#FFFFFF#000000##FFFFFF
##A042B71.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#4A6FB4
Tritanopia (blue-blind)
#A05677
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a042b7;
/* rgb */ color: rgb(160, 66, 183);
/* oklch */ color: oklch(55.3% 0.191 319.2);
Tailwind
colors: {
  custom: {
    50: '#bf7dcd',
    500: '#a042b7',
    950: '#000000',
  },
}
SCSS
$custom: #a042b7;
$custom-light: #bf7dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#a042b7",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 183
  },
  "hsl": {
    "h": 288.205,
    "s": 46.988,
    "l": 48.824
  },
  "oklch": {
    "l": 0.55292,
    "c": 0.19106,
    "h": 319.2
  },
  "luminance": 0.14789
}

Semantic roles & 50–950 ramp

primary
#A042B7
secondary
#9AC68F
accent
#D7516B
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A13
muted
#827C82

Preview Lab

Preview with #A042B7

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

Preview Lab → · Contrast checker → · Palette generator →

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