#C271FD#C271FD

#C271FD is a light, highly saturated violet. Relative luminance 0.304; OKLCH L 69.6% C 0.207 H 308.7°. Best body text is #000000 at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#C271FD
RGBrgb(194, 113, 253)
HSLhsl(275, 97%, 72%)
HSVhsv(275, 55%, 99%)
CMYKcmyk(23.3%, 55.3%, 0%, 0.8%)
CIE-LABlab(61.97, 56.13, -57.58)
CIE-LCHlch(61.97, 80.41, 314.27°)
OKLaboklab(69.59% 0.1296 -0.1618)
OKLCHoklch(69.59% 0.207 308.7)
XYZxyz(45.8794, 30.3721, 96.3549)
Luminance0.3037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271FD #ACFD71
analogous
#7C71FD #C271FD #FD71F2
triadic
#C271FD #FDC271 #71FDC2
tetradic
#C271FD #FD7C71 #ACFD71 #71F2FD
square
#C271FD #FD7C71 #ACFD71 #71F2FD
split-complementary
#C271FD #F2FD71 #71FD7C
monochromatic
#8C03F0 #A835FC #C271FD #DCADFE #F2E1FF

Accessibility & contrast

On white

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

On black

7.07
#C271FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C271FD
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271FD#FFFFFF#000000##000000
##C271FD1.002.977.077.07
#FFFFFF2.971.0021.0021.00
#0000007.0721.001.001.00
##0000007.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4292FF
Deuteranopia (green-blind)
#6097FA
Tritanopia (blue-blind)
#BA8BAD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #c271fd;
/* rgb */ color: rgb(194, 113, 253);
/* oklch */ color: oklch(69.6% 0.207 308.7);
Tailwind
colors: {
  custom: {
    50: '#d89dff',
    500: '#c271fd',
    950: '#000000',
  },
}
SCSS
$custom: #c271fd;
$custom-light: #d89dff;
$custom-dark: #000000;
JSON
{
  "hex": "#c271fd",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 253
  },
  "hsl": {
    "h": 274.714,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.69593,
    "c": 0.20732,
    "h": 308.7
  },
  "luminance": 0.30371
}

Semantic roles & 50–950 ramp

primary
#C271FD
secondary
#E2F7D3
accent
#E60061
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C271FD

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

Preview Lab → · Contrast checker → · Palette generator →

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