#A340BB#A340BB

#A340BB is a mid, vivid purple. Relative luminance 0.150; OKLCH L 55.7% C 0.199 H 319.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#A340BB
RGBrgb(163, 64, 187)
HSLhsl(288, 49%, 49%)
HSVhsv(288, 66%, 73%)
CMYKcmyk(12.8%, 65.8%, 0%, 26.7%)
CIE-LABlab(45.69, 58.27, -46.42)
CIE-LCHlch(45.69, 74.50, 321.46°)
OKLaboklab(55.71% 0.1506 -0.1298)
OKLCHoklch(55.71% 0.199 319.2)
XYZxyz(25.9061, 15.0424, 48.5429)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340BB #58BB40
analogous
#6640BB #A340BB #BB4096
triadic
#A340BB #BBA340 #40BBA3
tetradic
#A340BB #BB6640 #58BB40 #4096BB
square
#A340BB #BB6640 #58BB40 #4096BB
split-complementary
#A340BB #96BB40 #40BB66
monochromatic
#542160 #7B308D #A340BB #BA6CCD #CF99DC

Accessibility & contrast

On white

5.24
#A340BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#A340BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340BB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340BB#FFFFFF#000000##FFFFFF
##A340BB1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1666BF
Deuteranopia (green-blind)
#4870B8
Tritanopia (blue-blind)
#A35678
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #a340bb;
/* rgb */ color: rgb(163, 64, 187);
/* oklch */ color: oklch(55.7% 0.199 319.2);
Tailwind
colors: {
  custom: {
    50: '#c27cd0',
    500: '#a340bb',
    950: '#000000',
  },
}
SCSS
$custom: #a340bb;
$custom-light: #c27cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#a340bb",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 288.293,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55706,
    "c": 0.19883,
    "h": 319.2
  },
  "luminance": 0.15041
}

Semantic roles & 50–950 ramp

primary
#A340BB
secondary
#9AC88F
accent
#D94F6A
background
#FCF7FC
surface
#F8EEF9
border
#D1C9D2
text
#130A14
muted
#827C82

Preview Lab

Preview with #A340BB

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

Preview Lab → · Contrast checker → · Palette generator →

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