#C271FE#C271FE

#C271FE is a light, highly saturated violet. Relative luminance 0.304; OKLCH L 69.7% C 0.208 H 308.5°. Best body text is #000000 at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#C271FE
RGBrgb(194, 113, 254)
HSLhsl(274, 99%, 72%)
HSVhsv(274, 56%, 100%)
CMYKcmyk(23.6%, 55.5%, 0%, 0.4%)
CIE-LABlab(62.03, 56.34, -58.04)
CIE-LCHlch(62.03, 80.89, 314.15°)
OKLaboklab(69.65% 0.1296 -0.1632)
OKLCHoklch(69.65% 0.208 308.5)
XYZxyz(46.0391, 30.4360, 97.1961)
Luminance0.3044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271FE #ADFE71
analogous
#7C71FE #C271FE #FE71F4
triadic
#C271FE #FEC271 #71FEC2
tetradic
#C271FE #FE7C71 #ADFE71 #71F4FE
square
#C271FE #FE7C71 #ADFE71 #71F4FE
split-complementary
#C271FE #F4FE71 #71FE7C
monochromatic
#8C02F3 #A834FE #C271FE #DCAEFE #F2E1FF

Accessibility & contrast

On white

2.96
#C271FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.09
#C271FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C271FE
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271FE#FFFFFF#000000##000000
##C271FE1.002.967.097.09
#FFFFFF2.961.0021.0021.00
#0000007.0921.001.001.00
##0000007.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4193FF
Deuteranopia (green-blind)
#5F97FB
Tritanopia (blue-blind)
#B98BAD
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #c271fe;
/* rgb */ color: rgb(194, 113, 254);
/* oklch */ color: oklch(69.7% 0.208 308.5);
Tailwind
colors: {
  custom: {
    50: '#d89dff',
    500: '#c271fe',
    950: '#000000',
  },
}
SCSS
$custom: #c271fe;
$custom-light: #d89dff;
$custom-dark: #000000;
JSON
{
  "hex": "#c271fe",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 254
  },
  "hsl": {
    "h": 274.468,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.6965,
    "c": 0.2084,
    "h": 308.5
  },
  "luminance": 0.30435
}

Semantic roles & 50–950 ramp

primary
#C271FE
secondary
#E3F7D4
accent
#E60062
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C271FE

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

Preview Lab → · Contrast checker → · Palette generator →

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