#A342E2#A342E2

#A342E2 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.5% C 0.233 H 308.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#A342E2
RGBrgb(163, 66, 226)
HSLhsl(276, 73%, 57%)
HSVhsv(276, 71%, 89%)
CMYKcmyk(27.9%, 70.8%, 0%, 11.4%)
CIE-LABlab(48.48, 65.42, -64.38)
CIE-LCHlch(48.48, 91.78, 315.46°)
OKLaboklab(58.49% 0.1452 -0.1825)
OKLCHoklch(58.49% 0.233 308.5)
XYZxyz(30.7771, 17.1745, 73.6304)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A342E2 #81E242
analogous
#5342E2 #A342E2 #E242D1
triadic
#A342E2 #E2A342 #42E2A3
tetradic
#A342E2 #E25342 #81E242 #42D1E2
square
#A342E2 #E25342 #81E242 #42D1E2
split-complementary
#A342E2 #D1E242 #42E253
monochromatic
#621793 #851FC8 #A342E2 #BD77EA #D7ACF2

Accessibility & contrast

On white

4.74
#A342E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#A342E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A342E2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A342E2#FFFFFF#000000##FFFFFF
##A342E21.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE7
Deuteranopia (green-blind)
#1674DF
Tritanopia (blue-blind)
#99678E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a342e2;
/* rgb */ color: rgb(163, 66, 226);
/* oklch */ color: oklch(58.5% 0.233 308.5);
Tailwind
colors: {
  custom: {
    50: '#c37eec',
    500: '#a342e2',
    950: '#000000',
  },
}
SCSS
$custom: #a342e2;
$custom-light: #c37eec;
$custom-dark: #000000;
JSON
{
  "hex": "#a342e2",
  "rgb": {
    "r": 163,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 276.375,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.58492,
    "c": 0.2332,
    "h": 308.5
  },
  "luminance": 0.17174
}

Semantic roles & 50–950 ramp

primary
#A342E2
secondary
#B9E09F
accent
#F03880
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A342E2

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

Preview Lab → · Contrast checker → · Palette generator →

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