#A342DC#A342DC

#A342DC is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 58.1% C 0.227 H 309.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#A342DC
RGBrgb(163, 66, 220)
HSLhsl(278, 69%, 56%)
HSVhsv(278, 70%, 86%)
CMYKcmyk(25.9%, 70%, 0%, 13.7%)
CIE-LABlab(48.07, 64.14, -61.63)
CIE-LCHlch(48.07, 88.95, 316.15°)
OKLaboklab(58.07% 0.146 -0.1744)
OKLCHoklch(58.07% 0.227 309.9)
XYZxyz(29.9682, 16.8509, 69.3701)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A342DC #7BDC42
analogous
#5642DC #A342DC #DC42C8
triadic
#A342DC #DCA342 #42DCA3
tetradic
#A342DC #DC5642 #7BDC42 #42C8DC
square
#A342DC #DC5642 #7BDC42 #42C8DC
split-complementary
#A342DC #C8DC42 #42DC56
monochromatic
#601A8A #8423BE #A342DC #BC76E6 #D5A9EF

Accessibility & contrast

On white

4.81
#A342DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#A342DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A342DC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A342DC#FFFFFF#000000##FFFFFF
##A342DC1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#2574D9
Tritanopia (blue-blind)
#9B648B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #a342dc;
/* rgb */ color: rgb(163, 66, 220);
/* oklch */ color: oklch(58.1% 0.227 309.9);
Tailwind
colors: {
  custom: {
    50: '#c37ee8',
    500: '#a342dc',
    950: '#000000',
  },
}
SCSS
$custom: #a342dc;
$custom-light: #c37ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#a342dc",
  "rgb": {
    "r": 163,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 277.792,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58073,
    "c": 0.22745,
    "h": 309.9
  },
  "luminance": 0.1685
}

Semantic roles & 50–950 ramp

primary
#A342DC
secondary
#B5DD9D
accent
#EC3C7D
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A342DC

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

Preview Lab → · Contrast checker → · Palette generator →

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