#A342BB#A342BB

#A342BB is a mid, vivid purple. Relative luminance 0.153; OKLCH L 55.9% C 0.196 H 319.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#A342BB
RGBrgb(163, 66, 187)
HSLhsl(288, 48%, 50%)
HSVhsv(288, 65%, 73%)
CMYKcmyk(12.8%, 64.7%, 0%, 26.7%)
CIE-LABlab(46.00, 57.40, -45.92)
CIE-LCHlch(46.00, 73.51, 321.34°)
OKLaboklab(55.93% 0.1483 -0.1284)
OKLCHoklch(55.93% 0.196 319.1)
XYZxyz(26.0209, 15.2720, 48.5812)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A342BB #5ABB42
analogous
#6742BB #A342BB #BB4297
triadic
#A342BB #BBA342 #42BBA3
tetradic
#A342BB #BB6742 #5ABB42 #4297BB
square
#A342BB #BB6742 #5ABB42 #4297BB
split-complementary
#A342BB #97BB42 #42BB67
monochromatic
#542261 #7C328E #A342BB #B96ECC #CF9CDC

Accessibility & contrast

On white

5.18
#A342BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#A342BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A342BB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A342BB#FFFFFF#000000##FFFFFF
##A342BB1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C66BF
Deuteranopia (green-blind)
#4A70B8
Tritanopia (blue-blind)
#A35779
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a342bb;
/* rgb */ color: rgb(163, 66, 187);
/* oklch */ color: oklch(55.9% 0.196 319.1);
Tailwind
colors: {
  custom: {
    50: '#c17dd0',
    500: '#a342bb',
    950: '#000000',
  },
}
SCSS
$custom: #a342bb;
$custom-light: #c17dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#a342bb",
  "rgb": {
    "r": 163,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 288.099,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55931,
    "c": 0.19615,
    "h": 319.1
  },
  "luminance": 0.15271
}

Semantic roles & 50–950 ramp

primary
#A342BB
secondary
#9CC891
accent
#D7506B
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A342BB

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

Preview Lab → · Contrast checker → · Palette generator →

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