#A342BC#A342BC

#A342BC is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.197 H 318.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#A342BC
RGBrgb(163, 66, 188)
HSLhsl(288, 48%, 50%)
HSVhsv(288, 65%, 74%)
CMYKcmyk(13.3%, 64.9%, 0%, 26.3%)
CIE-LABlab(46.06, 57.60, -46.41)
CIE-LCHlch(46.06, 73.97, 321.14°)
OKLaboklab(55.99% 0.1483 -0.1298)
OKLCHoklch(55.99% 0.197 318.8)
XYZxyz(26.1284, 15.3150, 49.1470)
Luminance0.1531 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A342BC #5BBC42
analogous
#6642BC #A342BC #BC4298
triadic
#A342BC #BCA342 #42BCA3
tetradic
#A342BC #BC6642 #5BBC42 #4298BC
square
#A342BC #BC6642 #5BBC42 #4298BC
split-complementary
#A342BC #98BC42 #42BC66
monochromatic
#542261 #7C328F #A342BC #B96FCC #CF9CDC

Accessibility & contrast

On white

5.17
#A342BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#A342BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A342BC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A342BC#FFFFFF#000000##FFFFFF
##A342BC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A67C0
Deuteranopia (green-blind)
#4970B9
Tritanopia (blue-blind)
#A35779
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a342bc;
/* rgb */ color: rgb(163, 66, 188);
/* oklch */ color: oklch(56.0% 0.197 318.8);
Tailwind
colors: {
  custom: {
    50: '#c17dd1',
    500: '#a342bc',
    950: '#000000',
  },
}
SCSS
$custom: #a342bc;
$custom-light: #c17dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#a342bc",
  "rgb": {
    "r": 163,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 287.705,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55991,
    "c": 0.19708,
    "h": 318.8
  },
  "luminance": 0.15314
}

Semantic roles & 50–950 ramp

primary
#A342BC
secondary
#9DC991
accent
#D8506C
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A342BC

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

Preview Lab → · Contrast checker → · Palette generator →

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