#C978FC#C978FC

#C978FC is a light, vivid violet. Relative luminance 0.329; OKLCH L 71.3% C 0.198 H 310.7°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#C978FC
RGBrgb(201, 120, 252)
HSLhsl(277, 96%, 73%)
HSVhsv(277, 52%, 99%)
CMYKcmyk(20.2%, 52.4%, 0%, 1.2%)
CIE-LABlab(64.06, 54.10, -53.66)
CIE-LCHlch(64.06, 76.19, 315.23°)
OKLaboklab(71.29% 0.1291 -0.1502)
OKLCHoklch(71.29% 0.198 310.7)
XYZxyz(48.3713, 32.8797, 95.8748)
Luminance0.3288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C978FC #ABFC78
analogous
#8778FC #C978FC #FC78ED
triadic
#C978FC #FCC978 #78FCC9
tetradic
#C978FC #FC8778 #ABFC78 #78EDFC
square
#C978FC #FC8778 #ABFC78 #78EDFC
split-complementary
#C978FC #EDFC78 #78FC87
monochromatic
#9805F4 #B13CFB #C978FC #E1B4FD #F3E1FE

Accessibility & contrast

On white

2.77
#C978FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#C978FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C978FC
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C978FC#FFFFFF#000000##000000
##C978FC1.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5397FF
Deuteranopia (green-blind)
#6D9DF9
Tritanopia (blue-blind)
#C38FAF
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #c978fc;
/* rgb */ color: rgb(201, 120, 252);
/* oklch */ color: oklch(71.3% 0.198 310.7);
Tailwind
colors: {
  custom: {
    50: '#dca1fe',
    500: '#c978fc',
    950: '#000000',
  },
}
SCSS
$custom: #c978fc;
$custom-light: #dca1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#c978fc",
  "rgb": {
    "r": 201,
    "g": 120,
    "b": 252
  },
  "hsl": {
    "h": 276.818,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.71287,
    "c": 0.19805,
    "h": 310.7
  },
  "luminance": 0.32879
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C978FC

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

Preview Lab → · Contrast checker → · Palette generator →

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