#C271DD#C271DD

#C271DD is a light, vivid purple. Relative luminance 0.285; OKLCH L 67.9% C 0.173 H 317.2°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#C271DD
RGBrgb(194, 113, 221)
HSLhsl(285, 61%, 65%)
HSVhsv(285, 49%, 87%)
CMYKcmyk(12.2%, 48.9%, 0%, 13.3%)
CIE-LABlab(60.34, 49.36, -42.40)
CIE-LCHlch(60.34, 65.07, 319.34°)
OKLaboklab(67.86% 0.127 -0.1177)
OKLCHoklch(67.86% 0.173 317.2)
XYZxyz(41.2025, 28.5014, 71.7235)
Luminance0.2850 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271DD #8CDD71
analogous
#8C71DD #C271DD #DD71C2
triadic
#C271DD #DDC271 #71DDC2
tetradic
#C271DD #DD8C71 #8CDD71 #71C2DD
square
#C271DD #DD8C71 #8CDD71 #71C2DD
split-complementary
#C271DD #C2DD71 #71DD8C
monochromatic
#8A29AB #AD40D1 #C271DD #D7A2E9 #ECD4F5

Accessibility & contrast

On white

3.13
#C271DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#C271DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271DD
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271DD#FFFFFF#000000##000000
##C271DD1.003.136.706.70
#FFFFFF3.131.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C8CE1
Deuteranopia (green-blind)
#7494DA
Tritanopia (blue-blind)
#C1819D
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #c271dd;
/* rgb */ color: rgb(194, 113, 221);
/* oklch */ color: oklch(67.9% 0.173 317.2);
Tailwind
colors: {
  custom: {
    50: '#d69ce8',
    500: '#c271dd',
    950: '#000000',
  },
}
SCSS
$custom: #c271dd;
$custom-light: #d69ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#c271dd",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 285,
    "s": 61.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.67856,
    "c": 0.17309,
    "h": 317.2
  },
  "luminance": 0.285
}

Semantic roles & 50–950 ramp

primary
#C271DD
secondary
#CCE7C3
accent
#C91C48
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C271DD

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

Preview Lab → · Contrast checker → · Palette generator →

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