#C271DF#C271DF

#C271DF is a light, vivid purple. Relative luminance 0.286; OKLCH L 68.0% C 0.175 H 316.6°. Best body text is #000000 at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#C271DF
RGBrgb(194, 113, 223)
HSLhsl(284, 63%, 66%)
HSVhsv(284, 49%, 87%)
CMYKcmyk(13%, 49.3%, 0%, 12.5%)
CIE-LABlab(60.43, 49.77, -43.37)
CIE-LCHlch(60.43, 66.02, 318.93°)
OKLaboklab(67.96% 0.1272 -0.1205)
OKLCHoklch(67.96% 0.175 316.6)
XYZxyz(41.4706, 28.6086, 73.1352)
Luminance0.2861 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271DF #8EDF71
analogous
#8B71DF #C271DF #DF71C5
triadic
#C271DF #DFC271 #71DFC2
tetradic
#C271DF #DF8B71 #8EDF71 #71C5DF
square
#C271DF #DF8B71 #8EDF71 #71C5DF
split-complementary
#C271DF #C5DF71 #71DF8B
monochromatic
#8B27AE #AD3FD4 #C271DF #D7A3EA #EDD5F6

Accessibility & contrast

On white

3.12
#C271DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.72
#C271DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271DF
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271DF#FFFFFF#000000##000000
##C271DF1.003.126.726.72
#FFFFFF3.121.0021.0021.00
#0000006.7221.001.001.00
##0000006.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8DE3
Deuteranopia (green-blind)
#7394DC
Tritanopia (blue-blind)
#C1819E
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c271df;
/* rgb */ color: rgb(194, 113, 223);
/* oklch */ color: oklch(68.0% 0.175 316.6);
Tailwind
colors: {
  custom: {
    50: '#d69ce9',
    500: '#c271df',
    950: '#000000',
  },
}
SCSS
$custom: #c271df;
$custom-light: #d69ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#c271df",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 284.182,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.67958,
    "c": 0.17519,
    "h": 316.6
  },
  "luminance": 0.28607
}

Semantic roles & 50–950 ramp

primary
#C271DF
secondary
#CDE8C4
accent
#CB1B49
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C271DF

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

Preview Lab → · Contrast checker → · Palette generator →

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