#C271D2#C271D2

#C271D2 is a light, vivid purple. Relative luminance 0.279; OKLCH L 67.3% C 0.162 H 320.8°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#C271D2
RGBrgb(194, 113, 210)
HSLhsl(290, 52%, 63%)
HSVhsv(290, 46%, 82%)
CMYKcmyk(7.6%, 46.2%, 0%, 17.6%)
CIE-LABlab(59.83, 47.17, -37.02)
CIE-LCHlch(59.83, 59.96, 321.88°)
OKLaboklab(67.31% 0.1254 -0.1021)
OKLCHoklch(67.31% 0.162 320.8)
XYZxyz(39.7847, 27.9343, 64.2564)
Luminance0.2793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271D2 #81D271
analogous
#9171D2 #C271D2 #D271B1
triadic
#C271D2 #D2C271 #71D2C2
tetradic
#C271D2 #D29171 #81D271 #71B1D2
square
#C271D2 #D29171 #81D271 #71B1D2
split-complementary
#C271D2 #B1D271 #71D291
monochromatic
#873098 #AE43C3 #C271D2 #D69FE1 #EACEEF

Accessibility & contrast

On white

3.19
#C271D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#C271D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271D2
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271D2#FFFFFF#000000##000000
##C271D21.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#638AD5
Deuteranopia (green-blind)
#7A93CF
Tritanopia (blue-blind)
#C47D98
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #c271d2;
/* rgb */ color: rgb(194, 113, 210);
/* oklch */ color: oklch(67.3% 0.162 320.8);
Tailwind
colors: {
  custom: {
    50: '#d69ce0',
    500: '#c271d2',
    950: '#000000',
  },
}
SCSS
$custom: #c271d2;
$custom-light: #d69ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#c271d2",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 290.103,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67311,
    "c": 0.16169,
    "h": 320.8
  },
  "luminance": 0.27933
}

Semantic roles & 50–950 ramp

primary
#C271D2
secondary
#C4E1BE
accent
#BF263F
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#150E15
muted
#837E83

Preview Lab

Preview with #C271D2

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

Preview Lab → · Contrast checker → · Palette generator →

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