#C271DA#C271DA

#C271DA is a light, vivid purple. Relative luminance 0.283; OKLCH L 67.7% C 0.170 H 318.1°. Best body text is #000000 at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#C271DA
RGBrgb(194, 113, 218)
HSLhsl(286, 59%, 65%)
HSVhsv(286, 48%, 85%)
CMYKcmyk(11%, 48.2%, 0%, 14.5%)
CIE-LABlab(60.20, 48.76, -40.94)
CIE-LCHlch(60.20, 63.67, 319.98°)
OKLaboklab(67.71% 0.1266 -0.1134)
OKLCHoklch(67.71% 0.17 318.1)
XYZxyz(40.8064, 28.3429, 69.6373)
Luminance0.2834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271DA #89DA71
analogous
#8E71DA #C271DA #DA71BD
triadic
#C271DA #DAC271 #71DAC2
tetradic
#C271DA #DA8E71 #89DA71 #71BDDA
square
#C271DA #DA8E71 #89DA71 #71BDDA
split-complementary
#C271DA #BDDA71 #71DA8E
monochromatic
#8A2BA5 #AD40CD #C271DA #D7A2E7 #ECD2F3

Accessibility & contrast

On white

3.15
#C271DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.67
#C271DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271DA
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271DA#FFFFFF#000000##000000
##C271DA1.003.156.676.67
#FFFFFF3.151.0021.0021.00
#0000006.6721.001.001.00
##0000006.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E8CDE
Deuteranopia (green-blind)
#7694D7
Tritanopia (blue-blind)
#C2809B
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #c271da;
/* rgb */ color: rgb(194, 113, 218);
/* oklch */ color: oklch(67.7% 0.170 318.1);
Tailwind
colors: {
  custom: {
    50: '#d69ce6',
    500: '#c271da',
    950: '#000000',
  },
}
SCSS
$custom: #c271da;
$custom-light: #d69ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#c271da",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 218
  },
  "hsl": {
    "h": 286.286,
    "s": 58.659,
    "l": 64.902
  },
  "oklch": {
    "l": 0.67705,
    "c": 0.16995,
    "h": 318.1
  },
  "luminance": 0.28342
}

Semantic roles & 50–950 ramp

primary
#C271DA
secondary
#CAE5C1
accent
#C61F45
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C271DA

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

Preview Lab → · Contrast checker → · Palette generator →

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