#C271FA#C271FA

#C271FA is a light, highly saturated violet. Relative luminance 0.302; OKLCH L 69.4% C 0.204 H 309.4°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#C271FA
RGBrgb(194, 113, 250)
HSLhsl(275, 93%, 71%)
HSVhsv(275, 55%, 98%)
CMYKcmyk(22.4%, 54.8%, 0%, 2%)
CIE-LABlab(61.81, 55.47, -56.18)
CIE-LCHlch(61.81, 78.95, 314.63°)
OKLaboklab(69.42% 0.1295 -0.1578)
OKLCHoklch(69.42% 0.204 309.4)
XYZxyz(45.4053, 30.1825, 93.8578)
Luminance0.3018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271FA #A9FA71
analogous
#7D71FA #C271FA #FA71EE
triadic
#C271FA #FAC271 #71FAC2
tetradic
#C271FA #FA7D71 #A9FA71 #71EEFA
square
#C271FA #FA7D71 #A9FA71 #71EEFA
split-complementary
#C271FA #EEFA71 #71FA7D
monochromatic
#8D08E8 #A936F8 #C271FA #DBACFC #F2E1FE

Accessibility & contrast

On white

2.98
#C271FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#C271FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C271FA
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271FA#FFFFFF#000000##000000
##C271FA1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4592FF
Deuteranopia (green-blind)
#6297F7
Tritanopia (blue-blind)
#BA8AAB
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c271fa;
/* rgb */ color: rgb(194, 113, 250);
/* oklch */ color: oklch(69.4% 0.204 309.4);
Tailwind
colors: {
  custom: {
    50: '#d79dfc',
    500: '#c271fa',
    950: '#000000',
  },
}
SCSS
$custom: #c271fa;
$custom-light: #d79dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#c271fa",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 275.474,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.69421,
    "c": 0.20408,
    "h": 309.4
  },
  "luminance": 0.30182
}

Semantic roles & 50–950 ramp

primary
#C271FA
secondary
#E0F5D1
accent
#E6005E
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C271FA

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

Preview Lab → · Contrast checker → · Palette generator →

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