#A340C8#A340C8

#A340C8 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.5% C 0.211 H 315.3°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#A340C8
RGBrgb(163, 64, 200)
HSLhsl(284, 55%, 52%)
HSVhsv(284, 68%, 78%)
CMYKcmyk(18.5%, 68%, 0%, 21.6%)
CIE-LABlab(46.48, 60.84, -52.72)
CIE-LCHlch(46.48, 80.50, 319.09°)
OKLaboklab(56.52% 0.15 -0.1483)
OKLCHoklch(56.52% 0.211 315.3)
XYZxyz(27.3613, 15.6244, 56.2069)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340C8 #65C840
analogous
#5F40C8 #A340C8 #C840A9
triadic
#A340C8 #C8A340 #40C8A3
tetradic
#A340C8 #C85F40 #65C840 #40A9C8
square
#A340C8 #C85F40 #65C840 #40A9C8
split-complementary
#A340C8 #A9C840 #40C85F
monochromatic
#59206E #7F2D9D #A340C8 #BA70D6 #D19FE3

Accessibility & contrast

On white

5.09
#A340C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#A340C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340C8
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340C8#FFFFFF#000000##FFFFFF
##A340C81.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CC
Deuteranopia (green-blind)
#3D71C5
Tritanopia (blue-blind)
#A05B7F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a340c8;
/* rgb */ color: rgb(163, 64, 200);
/* oklch */ color: oklch(56.5% 0.211 315.3);
Tailwind
colors: {
  custom: {
    50: '#c27cd9',
    500: '#a340c8',
    950: '#000000',
  },
}
SCSS
$custom: #a340c8;
$custom-light: #c27cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#a340c8",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 283.676,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.56522,
    "c": 0.21092,
    "h": 315.3
  },
  "luminance": 0.15623
}

Semantic roles & 50–950 ramp

primary
#A340C8
secondary
#A4D094
accent
#DF4972
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A340C8

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

Preview Lab → · Contrast checker → · Palette generator →

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