#A340CB#A340CB

#A340CB is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.7% C 0.214 H 314.5°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#A340CB
RGBrgb(163, 64, 203)
HSLhsl(283, 57%, 52%)
HSVhsv(283, 68%, 80%)
CMYKcmyk(19.7%, 68.5%, 0%, 20.4%)
CIE-LABlab(46.67, 61.45, -54.15)
CIE-LCHlch(46.67, 81.90, 318.61°)
OKLaboklab(56.72% 0.1498 -0.1525)
OKLCHoklch(56.72% 0.214 314.5)
XYZxyz(27.7154, 15.7661, 58.0715)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A340CB #68CB40
analogous
#5E40CB #A340CB #CB40AD
triadic
#A340CB #CBA340 #40CBA3
tetradic
#A340CB #CB5E40 #68CB40 #40ADCB
square
#A340CB #CB5E40 #68CB40 #40ADCB
split-complementary
#A340CB #ADCB40 #40CB5E
monochromatic
#5A1F72 #802CA2 #A340CB #BA70D8 #D1A0E5

Accessibility & contrast

On white

5.06
#A340CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#A340CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A340CB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A340CB#FFFFFF#000000##FFFFFF
##A340CB1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#3A71C8
Tritanopia (blue-blind)
#A05C81
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a340cb;
/* rgb */ color: rgb(163, 64, 203);
/* oklch */ color: oklch(56.7% 0.214 314.5);
Tailwind
colors: {
  custom: {
    50: '#c27ddb',
    500: '#a340cb',
    950: '#000000',
  },
}
SCSS
$custom: #a340cb;
$custom-light: #c27ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#a340cb",
  "rgb": {
    "r": 163,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 282.734,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56717,
    "c": 0.21373,
    "h": 314.5
  },
  "luminance": 0.15765
}

Semantic roles & 50–950 ramp

primary
#A340CB
secondary
#A7D295
accent
#E04773
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A340CB

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

Preview Lab → · Contrast checker → · Palette generator →

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