#A340D8#A340D8

#A340D8 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.6% C 0.226 H 311.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#A340D8
RGBrgb(163, 64, 216)
HSLhsl(279, 66%, 55%)
HSVhsv(279, 70%, 85%)
CMYKcmyk(24.5%, 70.4%, 0%, 15.3%)
CIE-LABlab(47.51, 64.13, -60.25)
CIE-LCHlch(47.51, 87.99, 316.79°)
OKLaboklab(57.59% 0.1485 -0.1704)
OKLCHoklch(57.59% 0.226 311.1)
XYZxyz(29.3300, 16.4119, 66.5752)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340D8 #75D840
analogous
#5740D8 #A340D8 #D840C1
triadic
#A340D8 #D8A340 #40D8A3
tetradic
#A340D8 #D85740 #75D840 #40C1D8
square
#A340D8 #D85740 #75D840 #40C1D8
split-complementary
#A340D8 #C1D840 #40D857
monochromatic
#5F1B83 #8325B6 #A340D8 #BB73E2 #D4A6ED

Accessibility & contrast

On white

4.90
#A340D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#A340D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340D8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340D8#FFFFFF#000000##FFFFFF
##A340D81.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDC
Deuteranopia (green-blind)
#2972D5
Tritanopia (blue-blind)
#9C6188
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a340d8;
/* rgb */ color: rgb(163, 64, 216);
/* oklch */ color: oklch(57.6% 0.226 311.1);
Tailwind
colors: {
  custom: {
    50: '#c37de5',
    500: '#a340d8',
    950: '#000000',
  },
}
SCSS
$custom: #a340d8;
$custom-light: #c37de5;
$custom-dark: #000000;
JSON
{
  "hex": "#a340d8",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 279.079,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.57588,
    "c": 0.22599,
    "h": 311.1
  },
  "luminance": 0.16411
}

Semantic roles & 50–950 ramp

primary
#A340D8
secondary
#B0DA9A
accent
#E93F7A
background
#FCF8FE
surface
#F8EFFC
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A340D8

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

Preview Lab → · Contrast checker → · Palette generator →

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