#A342DF#A342DF

#A342DF is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 58.3% C 0.230 H 309.2°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#A342DF
RGBrgb(163, 66, 223)
HSLhsl(277, 71%, 57%)
HSVhsv(277, 70%, 87%)
CMYKcmyk(26.9%, 70.4%, 0%, 12.5%)
CIE-LABlab(48.27, 64.78, -63.01)
CIE-LCHlch(48.27, 90.37, 315.80°)
OKLaboklab(58.28% 0.1456 -0.1785)
OKLCHoklch(58.28% 0.23 309.2)
XYZxyz(30.3691, 17.0112, 71.4814)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A342DF #7EDF42
analogous
#5542DF #A342DF #DF42CD
triadic
#A342DF #DFA342 #42DFA3
tetradic
#A342DF #DF5542 #7EDF42 #42CDDF
square
#A342DF #DF5542 #7EDF42 #42CDDF
split-complementary
#A342DF #CDDF42 #42DF55
monochromatic
#61188E #8521C3 #A342DF #BC76E8 #D6ABF1

Accessibility & contrast

On white

4.77
#A342DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#A342DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A342DF
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A342DF#FFFFFF#000000##FFFFFF
##A342DF1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE4
Deuteranopia (green-blind)
#1E74DC
Tritanopia (blue-blind)
#9A658C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #a342df;
/* rgb */ color: rgb(163, 66, 223);
/* oklch */ color: oklch(58.3% 0.230 309.2);
Tailwind
colors: {
  custom: {
    50: '#c37eea',
    500: '#a342df',
    950: '#000000',
  },
}
SCSS
$custom: #a342df;
$custom-light: #c37eea;
$custom-dark: #000000;
JSON
{
  "hex": "#a342df",
  "rgb": {
    "r": 163,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 277.07,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.58281,
    "c": 0.23032,
    "h": 309.2
  },
  "luminance": 0.17011
}

Semantic roles & 50–950 ramp

primary
#A342DF
secondary
#B7DF9E
accent
#EE3A7F
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130B16
muted
#827C84

Preview Lab

Preview with #A342DF

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

Preview Lab → · Contrast checker → · Palette generator →

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