#C97EF2#C97EF2

#C97EF2 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.6% C 0.178 H 312.5°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#C97EF2
RGBrgb(201, 126, 242)
HSLhsl(279, 82%, 72%)
HSVhsv(279, 48%, 95%)
CMYKcmyk(16.9%, 47.9%, 0%, 5.1%)
CIE-LABlab(64.76, 48.86, -47.04)
CIE-LCHlch(64.76, 67.83, 316.09°)
OKLaboklab(71.65% 0.1201 -0.131)
OKLCHoklch(71.65% 0.178 312.5)
XYZxyz(47.5725, 33.7511, 87.9957)
Luminance0.3375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C97EF2 #A7F27E
analogous
#8F7EF2 #C97EF2 #F27EE1
triadic
#C97EF2 #F2C97E #7EF2C9
tetradic
#C97EF2 #F28F7E #A7F27E #7EE1F2
square
#C97EF2 #F28F7E #A7F27E #7EE1F2
split-complementary
#C97EF2 #E1F27E #7EF28F
monochromatic
#9816DF #B246EC #C97EF2 #E0B6F8 #F3E3FC

Accessibility & contrast

On white

2.71
#C97EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#C97EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C97EF2
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C97EF2#FFFFFF#000000##000000
##C97EF21.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#799FEF
Tritanopia (blue-blind)
#C590AD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #c97ef2;
/* rgb */ color: rgb(201, 126, 242);
/* oklch */ color: oklch(71.6% 0.178 312.5);
Tailwind
colors: {
  custom: {
    50: '#dba5f7',
    500: '#c97ef2',
    950: '#000000',
  },
}
SCSS
$custom: #c97ef2;
$custom-light: #dba5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c97ef2",
  "rgb": {
    "r": 201,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 278.793,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71645,
    "c": 0.17776,
    "h": 312.5
  },
  "luminance": 0.3375
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C97EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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