#A042BF#A042BF

#A042BF is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.8% C 0.199 H 316.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#A042BF
RGBrgb(160, 66, 191)
HSLhsl(285, 49%, 50%)
HSVhsv(285, 65%, 75%)
CMYKcmyk(16.2%, 65.4%, 0%, 25.1%)
CIE-LABlab(45.82, 57.50, -48.58)
CIE-LCHlch(45.82, 75.27, 319.80°)
OKLaboklab(55.78% 0.1446 -0.1363)
OKLCHoklch(55.78% 0.199 316.7)
XYZxyz(25.8480, 15.1326, 50.8394)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A042BF #61BF42
analogous
#6142BF #A042BF #BF429F
triadic
#A042BF #BFA042 #42BFA0
tetradic
#A042BF #BF6142 #61BF42 #429FBF
square
#A042BF #BF6142 #61BF42 #429FBF
split-complementary
#A042BF #9FBF42 #42BF61
monochromatic
#542265 #7A3292 #A042BF #B770CE #CE9DDE

Accessibility & contrast

On white

5.22
#A042BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#A042BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A042BF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A042BF#FFFFFF#000000##FFFFFF
##A042BF1.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D67C3
Deuteranopia (green-blind)
#446FBC
Tritanopia (blue-blind)
#9E597B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a042bf;
/* rgb */ color: rgb(160, 66, 191);
/* oklch */ color: oklch(55.8% 0.199 316.7);
Tailwind
colors: {
  custom: {
    50: '#bf7dd3',
    500: '#a042bf',
    950: '#000000',
  },
}
SCSS
$custom: #a042bf;
$custom-light: #bf7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#a042bf",
  "rgb": {
    "r": 160,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 285.12,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55783,
    "c": 0.19865,
    "h": 316.7
  },
  "luminance": 0.15132
}

Semantic roles & 50–950 ramp

primary
#A042BF
secondary
#A0CA93
accent
#D94F71
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A042BF

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

Preview Lab → · Contrast checker → · Palette generator →

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