#C5A1EA#C5A1EA

#C5A1EA is a light, moderate violet. Relative luminance 0.433; OKLCH L 76.7% C 0.109 H 306.5°. Best body text is #000000 at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#C5A1EA
RGBrgb(197, 161, 234)
HSLhsl(270, 63%, 77%)
HSVhsv(270, 31%, 92%)
CMYKcmyk(15.8%, 31.2%, 0%, 8.2%)
CIE-LABlab(71.76, 27.02, -31.77)
CIE-LCHlch(71.76, 41.70, 310.38°)
OKLaboklab(76.72% 0.0648 -0.0874)
OKLCHoklch(76.72% 0.109 306.5)
XYZxyz(50.6193, 43.3009, 83.5172)
Luminance0.4330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C5A1EA #C6EAA1
analogous
#A1A2EA #C5A1EA #E9A1EA
triadic
#C5A1EA #EAC5A1 #A1EAC5
tetradic
#C5A1EA #EAA1A2 #C6EAA1 #A1EAE9
square
#C5A1EA #EAA1A2 #C6EAA1 #A1EAE9
split-complementary
#C5A1EA #EAE9A1 #A2EAA1
monochromatic
#873DD4 #A66FDF #C5A1EA #E4D3F5 #F0E6F9

Accessibility & contrast

On white

2.17
#C5A1EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.66
#C5A1EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C5A1EA
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C5A1EA#FFFFFF#000000##000000
##C5A1EA1.002.179.669.66
#FFFFFF2.171.0021.0021.00
#0000009.6621.001.001.00
##0000009.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93AEED
Deuteranopia (green-blind)
#9AB0E8
Tritanopia (blue-blind)
#C0ABBB
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #c5a1ea;
/* rgb */ color: rgb(197, 161, 234);
/* oklch */ color: oklch(76.7% 0.109 306.5);
Tailwind
colors: {
  custom: {
    50: '#d7bdf1',
    500: '#c5a1ea',
    950: '#000000',
  },
}
SCSS
$custom: #c5a1ea;
$custom-light: #d7bdf1;
$custom-dark: #000000;
JSON
{
  "hex": "#c5a1ea",
  "rgb": {
    "r": 197,
    "g": 161,
    "b": 234
  },
  "hsl": {
    "h": 269.589,
    "s": 63.478,
    "l": 77.451
  },
  "oklch": {
    "l": 0.76716,
    "c": 0.10875,
    "h": 306.5
  },
  "luminance": 0.43301
}

Semantic roles & 50–950 ramp

primary
#C5A1EA
secondary
#E6F1DA
accent
#CB1A74
background
#FDFBFE
surface
#FAF6FD
border
#D3D0D5
text
#141216
muted
#838184

Preview Lab

Preview with #C5A1EA

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

Preview Lab → · Contrast checker → · Palette generator →

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