#C271BD#C271BD

#C271BD is a light, vivid purple. Relative luminance 0.270; OKLCH L 66.3% C 0.141 H 329.3°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#C271BD
RGBrgb(194, 113, 189)
HSLhsl(304, 40%, 60%)
HSVhsv(304, 42%, 76%)
CMYKcmyk(0%, 41.8%, 2.6%, 23.9%)
CIE-LABlab(58.93, 43.20, -26.50)
CIE-LCHlch(58.93, 50.68, 328.47°)
OKLaboklab(66.35% 0.1213 -0.0721)
OKLCHoklch(66.35% 0.141 329.3)
XYZxyz(37.3380, 26.9556, 51.3705)
Luminance0.2695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271BD #71C276
analogous
#9F71C2 #C271BD #C27194
triadic
#C271BD #BDC271 #71BDC2
tetradic
#C271BD #C29F71 #71C276 #7194C2
square
#C271BD #C29F71 #71C276 #7194C2
split-complementary
#C271BD #94C271 #71C29F
monochromatic
#81377D #AC4AA6 #C271BD #D49CD1 #E7C7E5

Accessibility & contrast

On white

3.29
#C271BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#C271BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271BD
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271BD#FFFFFF#000000##000000
##C271BD1.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D87C0
Deuteranopia (green-blind)
#8292BA
Tritanopia (blue-blind)
#C7788E
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #c271bd;
/* rgb */ color: rgb(194, 113, 189);
/* oklch */ color: oklch(66.3% 0.141 329.3);
Tailwind
colors: {
  custom: {
    50: '#d69cd1',
    500: '#c271bd',
    950: '#000000',
  },
}
SCSS
$custom: #c271bd;
$custom-light: #d69cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#c271bd",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 303.704,
    "s": 39.901,
    "l": 60.196
  },
  "oklch": {
    "l": 0.66348,
    "c": 0.14108,
    "h": 329.3
  },
  "luminance": 0.26954
}

Semantic roles & 50–950 ramp

primary
#C271BD
secondary
#B8D7BA
accent
#B33B33
background
#FDF9FC
surface
#FAF2F9
border
#D3CCD2
text
#140E14
muted
#837E82

Preview Lab

Preview with #C271BD

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

Preview Lab → · Contrast checker → · Palette generator →

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