#C271DB#C271DB

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

Color values

HEX#C271DB
RGBrgb(194, 113, 219)
HSLhsl(286, 60%, 65%)
HSVhsv(286, 48%, 86%)
CMYKcmyk(11.4%, 48.4%, 0%, 14.1%)
CIE-LABlab(60.24, 48.96, -41.43)
CIE-LCHlch(60.24, 64.14, 319.76°)
OKLaboklab(67.76% 0.1267 -0.1148)
OKLCHoklch(67.76% 0.171 317.8)
XYZxyz(40.9377, 28.3954, 70.3285)
Luminance0.2839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271DB #8ADB71
analogous
#8D71DB #C271DB #DB71BF
triadic
#C271DB #DBC271 #71DBC2
tetradic
#C271DB #DB8D71 #8ADB71 #71BFDB
square
#C271DB #DB8D71 #8ADB71 #71BFDB
split-complementary
#C271DB #BFDB71 #71DB8D
monochromatic
#8A2AA7 #AD40CF #C271DB #D7A2E7 #ECD3F4

Accessibility & contrast

On white

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

On black

6.68
#C271DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271DB
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271DB#FFFFFF#000000##000000
##C271DB1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c271db;
/* rgb */ color: rgb(194, 113, 219);
/* oklch */ color: oklch(67.8% 0.171 317.8);
Tailwind
colors: {
  custom: {
    50: '#d69ce6',
    500: '#c271db',
    950: '#000000',
  },
}
SCSS
$custom: #c271db;
$custom-light: #d69ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#c271db",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 285.849,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.67755,
    "c": 0.171,
    "h": 317.8
  },
  "luminance": 0.28394
}

Semantic roles & 50–950 ramp

primary
#C271DB
secondary
#CAE6C2
accent
#C71E46
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C271DB

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

Preview Lab → · Contrast checker → · Palette generator →

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