#A342D7#A342D7

#A342D7 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.7% C 0.223 H 311.2°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#A342D7
RGBrgb(163, 66, 215)
HSLhsl(279, 65%, 55%)
HSVhsv(279, 69%, 84%)
CMYKcmyk(24.2%, 69.3%, 0%, 15.7%)
CIE-LABlab(47.74, 63.09, -59.31)
CIE-LCHlch(47.74, 86.59, 316.77°)
OKLaboklab(57.73% 0.1466 -0.1676)
OKLCHoklch(57.73% 0.223 311.2)
XYZxyz(29.3159, 16.5900, 65.9347)
Luminance0.1659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A342D7 #76D742
analogous
#5842D7 #A342D7 #D742C1
triadic
#A342D7 #D7A342 #42D7A3
tetradic
#A342D7 #D75842 #76D742 #42C1D7
square
#A342D7 #D75842 #76D742 #42C1D7
split-complementary
#A342D7 #C1D742 #42D758
monochromatic
#5F1C83 #8326B5 #A342D7 #BC75E2 #D4A7EC

Accessibility & contrast

On white

4.86
#A342D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#A342D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A342D7
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A342D7#FFFFFF#000000##FFFFFF
##A342D71.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDB
Deuteranopia (green-blind)
#2D73D4
Tritanopia (blue-blind)
#9C6288
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a342d7;
/* rgb */ color: rgb(163, 66, 215);
/* oklch */ color: oklch(57.7% 0.223 311.2);
Tailwind
colors: {
  custom: {
    50: '#c37ee4',
    500: '#a342d7',
    950: '#000000',
  },
}
SCSS
$custom: #a342d7;
$custom-light: #c37ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#a342d7",
  "rgb": {
    "r": 163,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 279.06,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5773,
    "c": 0.22266,
    "h": 311.2
  },
  "luminance": 0.16589
}

Semantic roles & 50–950 ramp

primary
#A342D7
secondary
#B1DA9B
accent
#E8407A
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A342D7

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

Preview Lab → · Contrast checker → · Palette generator →

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