#C8A1EC#C8A1EC

#C8A1EC is a light, moderate violet. Relative luminance 0.438; OKLCH L 77.1% C 0.112 H 307.7°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#C8A1EC
RGBrgb(200, 161, 236)
HSLhsl(271, 66%, 78%)
HSVhsv(271, 32%, 93%)
CMYKcmyk(15.3%, 31.8%, 0%, 7.5%)
CIE-LABlab(72.11, 28.36, -32.29)
CIE-LCHlch(72.11, 42.98, 311.29°)
OKLaboklab(77.08% 0.0687 -0.0888)
OKLCHoklch(77.08% 0.112 307.7)
XYZxyz(51.7018, 43.8256, 85.0761)
Luminance0.4382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C8A1EC #C5ECA1
analogous
#A2A1EC #C8A1EC #ECA1EB
triadic
#C8A1EC #ECC8A1 #A1ECC8
tetradic
#C8A1EC #ECA2A1 #C5ECA1 #A1EBEC
square
#C8A1EC #ECA2A1 #C5ECA1 #A1EBEC
split-complementary
#C8A1EC #EBECA1 #A1ECA2
monochromatic
#8C3BD7 #AA6EE2 #C8A1EC #E6D4F6 #F0E6FA

Accessibility & contrast

On white

2.15
#C8A1EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#C8A1EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C8A1EC
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C8A1EC#FFFFFF#000000##000000
##C8A1EC1.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93AFEF
Deuteranopia (green-blind)
#9BB1EA
Tritanopia (blue-blind)
#C3ACBC
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #c8a1ec;
/* rgb */ color: rgb(200, 161, 236);
/* oklch */ color: oklch(77.1% 0.112 307.7);
Tailwind
colors: {
  custom: {
    50: '#d9bdf2',
    500: '#c8a1ec',
    950: '#000000',
  },
}
SCSS
$custom: #c8a1ec;
$custom-light: #d9bdf2;
$custom-dark: #000000;
JSON
{
  "hex": "#c8a1ec",
  "rgb": {
    "r": 200,
    "g": 161,
    "b": 236
  },
  "hsl": {
    "h": 271.2,
    "s": 66.372,
    "l": 77.843
  },
  "oklch": {
    "l": 0.77076,
    "c": 0.11225,
    "h": 307.7
  },
  "luminance": 0.43825
}

Semantic roles & 50–950 ramp

primary
#C8A1EC
secondary
#E5F1DA
accent
#CE176F
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151217
muted
#838185

Preview Lab

Preview with #C8A1EC

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

Preview Lab → · Contrast checker → · Palette generator →

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