#A340B2#A340B2

#A340B2 is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.2% C 0.191 H 322.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#A340B2
RGBrgb(163, 64, 178)
HSLhsl(292, 47%, 47%)
HSVhsv(292, 64%, 70%)
CMYKcmyk(8.4%, 64%, 0%, 30.2%)
CIE-LABlab(45.18, 56.55, -41.97)
CIE-LCHlch(45.18, 70.42, 323.42°)
OKLaboklab(55.17% 0.1506 -0.1168)
OKLCHoklch(55.17% 0.191 322.2)
XYZxyz(24.9727, 14.6690, 43.6269)
Luminance0.1467 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340B2 #4FB240
analogous
#6A40B2 #A340B2 #B24088
triadic
#A340B2 #B2A340 #40B2A3
tetradic
#A340B2 #B26A40 #4FB240 #4088B2
square
#A340B2 #B26A40 #4FB240 #4088B2
split-complementary
#A340B2 #88B240 #40B26A
monochromatic
#512058 #7A3085 #A340B2 #BB67C8 #CF94D8

Accessibility & contrast

On white

5.34
#A340B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#A340B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340B2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340B2#FFFFFF#000000##FFFFFF
##A340B21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B5
Deuteranopia (green-blind)
#4E6FAF
Tritanopia (blue-blind)
#A55273
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #a340b2;
/* rgb */ color: rgb(163, 64, 178);
/* oklch */ color: oklch(55.2% 0.191 322.2);
Tailwind
colors: {
  custom: {
    50: '#c17cc9',
    500: '#a340b2',
    950: '#000000',
  },
}
SCSS
$custom: #a340b2;
$custom-light: #c17cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#a340b2",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 292.105,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55168,
    "c": 0.1906,
    "h": 322.2
  },
  "luminance": 0.14668
}

Semantic roles & 50–950 ramp

primary
#A340B2
secondary
#91C48A
accent
#D75163
background
#FCF7FC
surface
#F8EEF8
border
#D1C9D1
text
#130A13
muted
#827C82

Preview Lab

Preview with #A340B2

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

Preview Lab → · Contrast checker → · Palette generator →

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