#C271BA#C271BA

#C271BA is a light, vivid purple. Relative luminance 0.268; OKLCH L 66.2% C 0.138 H 330.7°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#C271BA
RGBrgb(194, 113, 186)
HSLhsl(306, 40%, 60%)
HSVhsv(306, 42%, 76%)
CMYKcmyk(0%, 41.8%, 4.1%, 23.9%)
CIE-LABlab(58.81, 42.66, -24.97)
CIE-LCHlch(58.81, 49.43, 329.66°)
OKLaboklab(66.22% 0.1206 -0.0678)
OKLCHoklch(66.22% 0.138 330.7)
XYZxyz(37.0158, 26.8267, 49.6732)
Luminance0.2682 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271BA #71C279
analogous
#A171C2 #C271BA #C27191
triadic
#C271BA #BAC271 #71BAC2
tetradic
#C271BA #C2A171 #71C279 #7191C2
square
#C271BA #C2A171 #71C279 #7191C2
split-complementary
#C271BA #91C271 #71C2A1
monochromatic
#81377A #AC4AA2 #C271BA #D49CCF #E7C7E4

Accessibility & contrast

On white

3.30
#C271BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.36
#C271BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271BA
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271BA#FFFFFF#000000##000000
##C271BA1.003.306.366.36
#FFFFFF3.301.0021.0021.00
#0000006.3621.001.001.00
##0000006.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E86BD
Deuteranopia (green-blind)
#8392B8
Tritanopia (blue-blind)
#C8778D
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #c271ba;
/* rgb */ color: rgb(194, 113, 186);
/* oklch */ color: oklch(66.2% 0.138 330.7);
Tailwind
colors: {
  custom: {
    50: '#d69ccf',
    500: '#c271ba',
    950: '#000000',
  },
}
SCSS
$custom: #c271ba;
$custom-light: #d69ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#c271ba",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 305.926,
    "s": 39.901,
    "l": 60.196
  },
  "oklch": {
    "l": 0.66219,
    "c": 0.13832,
    "h": 330.7
  },
  "luminance": 0.26825
}

Semantic roles & 50–950 ramp

primary
#C271BA
secondary
#B8D7BB
accent
#B33F33
background
#FDF9FC
surface
#FAF2F9
border
#D3CCD2
text
#140E13
muted
#837E82

Preview Lab

Preview with #C271BA

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

Preview Lab → · Contrast checker → · Palette generator →

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