#A87ECB#A87ECB

#A87ECB is a light, moderate violet. Relative luminance 0.276; OKLCH L 66.3% C 0.119 H 308.5°. Best body text is #000000 at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#A87ECB
RGBrgb(168, 126, 203)
HSLhsl(273, 43%, 65%)
HSVhsv(273, 38%, 80%)
CMYKcmyk(17.2%, 37.9%, 0%, 20.4%)
CIE-LABlab(59.49, 30.90, -33.81)
CIE-LCHlch(59.49, 45.80, 312.42°)
OKLaboklab(66.31% 0.0744 -0.0935)
OKLCHoklch(66.31% 0.12 308.5)
XYZxyz(34.3868, 27.5587, 59.9962)
Luminance0.2756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A87ECB #A1CB7E
analogous
#827ECB #A87ECB #CB7EC8
triadic
#A87ECB #CBA87E #7ECBA8
tetradic
#A87ECB #CB827E #A1CB7E #7EC8CB
square
#A87ECB #CB827E #A1CB7E #7EC8CB
split-complementary
#A87ECB #C8CB7E #7ECB82
monochromatic
#6B3B93 #8B52B9 #A87ECB #C5AADD #E3D5EE

Accessibility & contrast

On white

3.23
#A87ECB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.51
#A87ECB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #A87ECB
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A87ECB#FFFFFF#000000##000000
##A87ECB1.003.236.516.51
#FFFFFF3.231.0021.0021.00
#0000006.5121.001.001.00
##0000006.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E8DCE
Deuteranopia (green-blind)
#7890C9
Tritanopia (blue-blind)
#A4899B
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #a87ecb;
/* rgb */ color: rgb(168, 126, 203);
/* oklch */ color: oklch(66.3% 0.119 308.5);
Tailwind
colors: {
  custom: {
    50: '#c3a4db',
    500: '#a87ecb',
    950: '#000000',
  },
}
SCSS
$custom: #a87ecb;
$custom-light: #c3a4db;
$custom-dark: #000000;
JSON
{
  "hex": "#a87ecb",
  "rgb": {
    "r": 168,
    "g": 126,
    "b": 203
  },
  "hsl": {
    "h": 272.727,
    "s": 42.541,
    "l": 64.51
  },
  "oklch": {
    "l": 0.66313,
    "c": 0.1195,
    "h": 308.5
  },
  "luminance": 0.27558
}

Semantic roles & 50–950 ramp

primary
#A87ECB
secondary
#D1E0C5
accent
#B6306D
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #A87ECB

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

Preview Lab → · Contrast checker → · Palette generator →

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