#A340DB#A340DB

#A340DB is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.8% C 0.229 H 310.3°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#A340DB
RGBrgb(163, 64, 219)
HSLhsl(278, 68%, 55%)
HSVhsv(278, 71%, 86%)
CMYKcmyk(25.6%, 70.8%, 0%, 14.1%)
CIE-LABlab(47.71, 64.76, -61.64)
CIE-LCHlch(47.71, 89.40, 316.41°)
OKLaboklab(57.79% 0.1481 -0.1744)
OKLCHoklch(57.79% 0.229 310.3)
XYZxyz(29.7214, 16.5684, 68.6364)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340DB #78DB40
analogous
#5640DB #A340DB #DB40C5
triadic
#A340DB #DBA340 #40DBA3
tetradic
#A340DB #DB5640 #78DB40 #40C5DB
square
#A340DB #DB5640 #78DB40 #40C5DB
split-complementary
#A340DB #C5DB40 #40DB56
monochromatic
#601987 #8423BB #A340DB #BC73E5 #D5A7EE

Accessibility & contrast

On white

4.87
#A340DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#A340DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340DB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340DB#FFFFFF#000000##FFFFFF
##A340DB1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#2373D8
Tritanopia (blue-blind)
#9B638A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #a340db;
/* rgb */ color: rgb(163, 64, 219);
/* oklch */ color: oklch(57.8% 0.229 310.3);
Tailwind
colors: {
  custom: {
    50: '#c37de7',
    500: '#a340db',
    950: '#000000',
  },
}
SCSS
$custom: #a340db;
$custom-light: #c37de7;
$custom-dark: #000000;
JSON
{
  "hex": "#a340db",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 278.323,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57795,
    "c": 0.22882,
    "h": 310.3
  },
  "luminance": 0.16568
}

Semantic roles & 50–950 ramp

primary
#A340DB
secondary
#B2DC9B
accent
#EB3D7C
background
#FCF8FE
surface
#F8EFFD
border
#D1CAD5
text
#130A16
muted
#827C84

Preview Lab

Preview with #A340DB

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

Preview Lab → · Contrast checker → · Palette generator →

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