#A340BF#A340BF

#A340BF is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.203 H 318.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#A340BF
RGBrgb(163, 64, 191)
HSLhsl(287, 50%, 50%)
HSVhsv(287, 66%, 75%)
CMYKcmyk(14.7%, 66.5%, 0%, 25.1%)
CIE-LABlab(45.93, 59.05, -48.38)
CIE-LCHlch(45.93, 76.34, 320.68°)
OKLaboklab(55.95% 0.1505 -0.1356)
OKLCHoklch(55.95% 0.203 318)
XYZxyz(26.3403, 15.2160, 50.8296)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340BF #5CBF40
analogous
#6440BF #A340BF #BF409B
triadic
#A340BF #BFA340 #40BFA3
tetradic
#A340BF #BF6440 #5CBF40 #409BBF
square
#A340BF #BF6440 #5CBF40 #409BBF
split-complementary
#A340BF #9BBF40 #40BF64
monochromatic
#552163 #7C3191 #A340BF #B96ECE #CF9CDE

Accessibility & contrast

On white

5.19
#A340BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#A340BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340BF
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340BF#FFFFFF#000000##FFFFFF
##A340BF1.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A66C3
Deuteranopia (green-blind)
#4570BC
Tritanopia (blue-blind)
#A2577A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a340bf;
/* rgb */ color: rgb(163, 64, 191);
/* oklch */ color: oklch(56.0% 0.203 318.0);
Tailwind
colors: {
  custom: {
    50: '#c27cd3',
    500: '#a340bf',
    950: '#000000',
  },
}
SCSS
$custom: #a340bf;
$custom-light: #c27cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#a340bf",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 286.772,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.55952,
    "c": 0.20253,
    "h": 318
  },
  "luminance": 0.15215
}

Semantic roles & 50–950 ramp

primary
#A340BF
secondary
#9DCA91
accent
#D94E6D
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A340BF

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

Preview Lab → · Contrast checker → · Palette generator →

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