#A042B2#A042B2

#A042B2 is a mid, vivid purple. Relative luminance 0.146; OKLCH L 55.0% C 0.186 H 320.9°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#A042B2
RGBrgb(160, 66, 178)
HSLhsl(290, 46%, 48%)
HSVhsv(290, 63%, 70%)
CMYKcmyk(10.1%, 62.9%, 0%, 30.2%)
CIE-LABlab(45.06, 54.93, -42.18)
CIE-LCHlch(45.06, 69.25, 322.48°)
OKLaboklab(55% 0.1446 -0.1176)
OKLCHoklch(55% 0.186 320.9)
XYZxyz(24.4804, 14.5856, 43.6367)
Luminance0.1458 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042B2 #54B242
analogous
#6842B2 #A042B2 #B2428C
triadic
#A042B2 #B2A042 #42B2A0
tetradic
#A042B2 #B26842 #54B242 #428CB2
square
#A042B2 #B26842 #54B242 #428CB2
split-complementary
#A042B2 #8CB242 #42B268
monochromatic
#502159 #783185 #A042B2 #B86AC8 #CE96D8

Accessibility & contrast

On white

5.36
#A042B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#A042B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042B2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042B2#FFFFFF#000000##FFFFFF
##A042B21.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2664B5
Deuteranopia (green-blind)
#4D6EAF
Tritanopia (blue-blind)
#A15474
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a042b2;
/* rgb */ color: rgb(160, 66, 178);
/* oklch */ color: oklch(55.0% 0.186 320.9);
Tailwind
colors: {
  custom: {
    50: '#bf7dc9',
    500: '#a042b2',
    950: '#000000',
  },
}
SCSS
$custom: #a042b2;
$custom-light: #bf7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a042b2",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 290.357,
    "s": 45.902,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54995,
    "c": 0.18637,
    "h": 320.9
  },
  "luminance": 0.14584
}

Semantic roles & 50–950 ramp

primary
#A042B2
secondary
#95C48C
accent
#D65267
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A042B2

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

Preview Lab → · Contrast checker → · Palette generator →

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