#C97FF2#C97FF2

#C97FF2 is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.8% C 0.176 H 312.4°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#C97FF2
RGBrgb(201, 127, 242)
HSLhsl(279, 82%, 72%)
HSVhsv(279, 48%, 95%)
CMYKcmyk(16.9%, 47.5%, 0%, 5.1%)
CIE-LABlab(64.97, 48.34, -46.72)
CIE-LCHlch(64.97, 67.23, 315.97°)
OKLaboklab(71.8% 0.1188 -0.1301)
OKLCHoklch(71.8% 0.176 312.4)
XYZxyz(47.7010, 34.0081, 88.0386)
Luminance0.3401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C97FF2 #A8F27F
analogous
#907FF2 #C97FF2 #F27FE1
triadic
#C97FF2 #F2C97F #7FF2C9
tetradic
#C97FF2 #F2907F #A8F27F #7FE1F2
square
#C97FF2 #F2907F #A8F27F #7FE1F2
split-complementary
#C97FF2 #E1F27F #7FF290
monochromatic
#9817E0 #B247EC #C97FF2 #E0B7F8 #F3E3FC

Accessibility & contrast

On white

2.69
#C97FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#C97FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C97FF2
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C97FF2#FFFFFF#000000##000000
##C97FF21.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#659AF6
Deuteranopia (green-blind)
#7A9FEF
Tritanopia (blue-blind)
#C591AD
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #c97ff2;
/* rgb */ color: rgb(201, 127, 242);
/* oklch */ color: oklch(71.8% 0.176 312.4);
Tailwind
colors: {
  custom: {
    50: '#dba6f7',
    500: '#c97ff2',
    950: '#000000',
  },
}
SCSS
$custom: #c97ff2;
$custom-light: #dba6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c97ff2",
  "rgb": {
    "r": 201,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 278.609,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71797,
    "c": 0.17617,
    "h": 312.4
  },
  "luminance": 0.34007
}

Semantic roles & 50–950 ramp

primary
#C97FF2
secondary
#E1F4D7
accent
#DE0854
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C97FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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