#A342D4#A342D4

#A342D4 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.5% C 0.220 H 311.9°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#A342D4
RGBrgb(163, 66, 212)
HSLhsl(280, 63%, 55%)
HSVhsv(280, 69%, 83%)
CMYKcmyk(23.1%, 68.9%, 0%, 16.9%)
CIE-LABlab(47.54, 62.46, -57.91)
CIE-LCHlch(47.54, 85.17, 317.16°)
OKLaboklab(57.53% 0.1469 -0.1635)
OKLCHoklch(57.53% 0.22 311.9)
XYZxyz(28.9340, 16.4372, 63.9231)
Luminance0.1644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A342D4 #73D442
analogous
#5A42D4 #A342D4 #D442BC
triadic
#A342D4 #D4A342 #42D4A3
tetradic
#A342D4 #D45A42 #73D442 #42BCD4
square
#A342D4 #D45A42 #73D442 #42BCD4
split-complementary
#A342D4 #BCD442 #42D45A
monochromatic
#5E1D7F #8328B1 #A342D4 #BB74DF #D4A6EB

Accessibility & contrast

On white

4.90
#A342D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#A342D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A342D4
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A342D4#FFFFFF#000000##FFFFFF
##A342D41.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD8
Deuteranopia (green-blind)
#3273D1
Tritanopia (blue-blind)
#9D6186
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a342d4;
/* rgb */ color: rgb(163, 66, 212);
/* oklch */ color: oklch(57.5% 0.220 311.9);
Tailwind
colors: {
  custom: {
    50: '#c27ee2',
    500: '#a342d4',
    950: '#000000',
  },
}
SCSS
$custom: #a342d4;
$custom-light: #c27ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#a342d4",
  "rgb": {
    "r": 163,
    "g": 66,
    "b": 212
  },
  "hsl": {
    "h": 279.863,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.57528,
    "c": 0.2198,
    "h": 311.9
  },
  "luminance": 0.16436
}

Semantic roles & 50–950 ramp

primary
#A342D4
secondary
#AFD89A
accent
#E64279
background
#FCF8FD
surface
#F8EFFB
border
#D1CAD4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A342D4

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

Preview Lab → · Contrast checker → · Palette generator →

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