#C271DC#C271DC

#C271DC is a light, vivid purple. Relative luminance 0.284; OKLCH L 67.8% C 0.172 H 317.5°. Best body text is #000000 at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#C271DC
RGBrgb(194, 113, 220)
HSLhsl(285, 60%, 65%)
HSVhsv(285, 49%, 86%)
CMYKcmyk(11.8%, 48.6%, 0%, 13.7%)
CIE-LABlab(60.29, 49.16, -41.91)
CIE-LCHlch(60.29, 64.60, 319.55°)
OKLaboklab(67.81% 0.1268 -0.1162)
OKLCHoklch(67.81% 0.172 317.5)
XYZxyz(41.0697, 28.4482, 71.0239)
Luminance0.2845 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271DC #8BDC71
analogous
#8D71DC #C271DC #DC71C0
triadic
#C271DC #DCC271 #71DCC2
tetradic
#C271DC #DC8D71 #8BDC71 #71C0DC
square
#C271DC #DC8D71 #8BDC71 #71C0DC
split-complementary
#C271DC #C0DC71 #71DC8D
monochromatic
#8A2AA9 #AD40D0 #C271DC #D7A2E8 #ECD3F4

Accessibility & contrast

On white

3.14
#C271DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.69
#C271DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271DC
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271DC#FFFFFF#000000##000000
##C271DC1.003.146.696.69
#FFFFFF3.141.0021.0021.00
#0000006.6921.001.001.00
##0000006.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8CE0
Deuteranopia (green-blind)
#7594D9
Tritanopia (blue-blind)
#C2809C
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #c271dc;
/* rgb */ color: rgb(194, 113, 220);
/* oklch */ color: oklch(67.8% 0.172 317.5);
Tailwind
colors: {
  custom: {
    50: '#d69ce7',
    500: '#c271dc',
    950: '#000000',
  },
}
SCSS
$custom: #c271dc;
$custom-light: #d69ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#c271dc",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 285.421,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.67805,
    "c": 0.17204,
    "h": 317.5
  },
  "luminance": 0.28447
}

Semantic roles & 50–950 ramp

primary
#C271DC
secondary
#CBE6C2
accent
#C81D47
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C271DC

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

Preview Lab → · Contrast checker → · Palette generator →

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