#C918C2#C918C2

#C918C2 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.8% C 0.257 H 330.2°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#C918C2
RGBrgb(201, 24, 194)
HSLhsl(302, 79%, 44%)
HSVhsv(302, 88%, 79%)
CMYKcmyk(0%, 88.1%, 3.5%, 21.2%)
CIE-LABlab(48.22, 78.65, -46.11)
CIE-LCHlch(48.22, 91.17, 329.62°)
OKLaboklab(58.82% 0.2231 -0.1277)
OKLCHoklch(58.82% 0.257 330.2)
XYZxyz(34.1515, 16.9687, 52.5051)
Luminance0.1697 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C918C2 #18C91F
analogous
#7818C9 #C918C2 #C9186A
triadic
#C918C2 #C2C918 #18C2C9
tetradic
#C918C2 #C97818 #18C91F #186AC9
square
#C918C2 #C97818 #18C91F #186AC9
split-complementary
#C918C2 #6AC918 #18C978
monochromatic
#5C0B58 #92118D #C918C2 #E737E0 #EE6EE9

Accessibility & contrast

On white

4.78
#C918C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#C918C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C918C2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C918C2#FFFFFF#000000##FFFFFF
##C918C21.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#597ABE
Tritanopia (blue-blind)
#D13A73
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #c918c2;
/* rgb */ color: rgb(201, 24, 194);
/* oklch */ color: oklch(58.8% 0.257 330.2);
Tailwind
colors: {
  custom: {
    50: '#de73d5',
    500: '#c918c2',
    950: '#000000',
  },
}
SCSS
$custom: #c918c2;
$custom-light: #de73d5;
$custom-dark: #000000;
JSON
{
  "hex": "#c918c2",
  "rgb": {
    "r": 201,
    "g": 24,
    "b": 194
  },
  "hsl": {
    "h": 302.373,
    "s": 78.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.58819,
    "c": 0.25703,
    "h": 330.2
  },
  "luminance": 0.16966
}

Semantic roles & 50–950 ramp

primary
#C918C2
secondary
#69D46D
accent
#F53A33
background
#FEF7FD
surface
#FCEEFA
border
#D5C9D3
text
#160A14
muted
#847C83

Preview Lab

Preview with #C918C2

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

Preview Lab → · Contrast checker → · Palette generator →

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