#C271FC#C271FC

#C271FC is a light, highly saturated violet. Relative luminance 0.303; OKLCH L 69.5% C 0.206 H 308.9°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#C271FC
RGBrgb(194, 113, 252)
HSLhsl(275, 96%, 72%)
HSVhsv(275, 55%, 99%)
CMYKcmyk(23%, 55.2%, 0%, 1.2%)
CIE-LABlab(61.92, 55.91, -57.11)
CIE-LCHlch(61.92, 79.92, 314.39°)
OKLaboklab(69.54% 0.1295 -0.1605)
OKLCHoklch(69.54% 0.206 308.9)
XYZxyz(45.7205, 30.3086, 95.5182)
Luminance0.3031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271FC #ABFC71
analogous
#7D71FC #C271FC #FC71F1
triadic
#C271FC #FCC271 #71FCC2
tetradic
#C271FC #FC7D71 #ABFC71 #71F1FC
square
#C271FC #FC7D71 #ABFC71 #71F1FC
split-complementary
#C271FC #F1FC71 #71FC7D
monochromatic
#8D05EE #A835FB #C271FC #DCADFD #F2E1FE

Accessibility & contrast

On white

2.97
#C271FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#C271FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C271FC
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271FC#FFFFFF#000000##000000
##C271FC1.002.977.067.06
#FFFFFF2.971.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4392FF
Deuteranopia (green-blind)
#6197F9
Tritanopia (blue-blind)
#BA8AAC
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #c271fc;
/* rgb */ color: rgb(194, 113, 252);
/* oklch */ color: oklch(69.5% 0.206 308.9);
Tailwind
colors: {
  custom: {
    50: '#d89dfe',
    500: '#c271fc',
    950: '#000000',
  },
}
SCSS
$custom: #c271fc;
$custom-light: #d89dfe;
$custom-dark: #000000;
JSON
{
  "hex": "#c271fc",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 274.964,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.69535,
    "c": 0.20623,
    "h": 308.9
  },
  "luminance": 0.30308
}

Semantic roles & 50–950 ramp

primary
#C271FC
secondary
#E1F6D3
accent
#E60060
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C271FC

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

Preview Lab → · Contrast checker → · Palette generator →

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