#C97AFE#C97AFE

#C97AFE is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.7% C 0.197 H 310.0°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#C97AFE
RGBrgb(201, 122, 254)
HSLhsl(276, 99%, 74%)
HSVhsv(276, 52%, 100%)
CMYKcmyk(20.9%, 52%, 0%, 0.4%)
CIE-LABlab(64.56, 53.50, -53.97)
CIE-LCHlch(64.56, 75.99, 314.75°)
OKLaboklab(71.69% 0.1266 -0.1511)
OKLCHoklch(71.69% 0.197 310)
XYZxyz(48.9330, 33.4932, 97.6338)
Luminance0.3349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C97AFE #AFFE7A
analogous
#877AFE #C97AFE #FE7AF1
triadic
#C97AFE #FEC97A #7AFEC9
tetradic
#C97AFE #FE877A #AFFE7A #7AF1FE
square
#C97AFE #FE877A #AFFE7A #7AF1FE
split-complementary
#C97AFE #F1FE7A #7AFE87
monochromatic
#9702FC #B03DFE #C97AFE #E2B7FE #F3E1FF

Accessibility & contrast

On white

2.73
#C97AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#C97AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C97AFE
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C97AFE#FFFFFF#000000##000000
##C97AFE1.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5599FF
Deuteranopia (green-blind)
#6E9EFB
Tritanopia (blue-blind)
#C291B1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #c97afe;
/* rgb */ color: rgb(201, 122, 254);
/* oklch */ color: oklch(71.7% 0.197 310.0);
Tailwind
colors: {
  custom: {
    50: '#dca3ff',
    500: '#c97afe',
    950: '#000000',
  },
}
SCSS
$custom: #c97afe;
$custom-light: #dca3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#c97afe",
  "rgb": {
    "r": 201,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 275.909,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.71686,
    "c": 0.19718,
    "h": 310
  },
  "luminance": 0.33492
}

Semantic roles & 50–950 ramp

primary
#C97AFE
secondary
#E2F7D4
accent
#E6005C
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #C97AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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