#C271FB#C271FB

#C271FB is a light, highly saturated violet. Relative luminance 0.302; OKLCH L 69.5% C 0.205 H 309.1°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#C271FB
RGBrgb(194, 113, 251)
HSLhsl(275, 95%, 71%)
HSVhsv(275, 55%, 98%)
CMYKcmyk(22.7%, 55%, 0%, 1.6%)
CIE-LABlab(61.87, 55.69, -56.65)
CIE-LCHlch(61.87, 79.44, 314.51°)
OKLaboklab(69.48% 0.1295 -0.1591)
OKLCHoklch(69.48% 0.205 309.1)
XYZxyz(45.5625, 30.2454, 94.6858)
Luminance0.3024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271FB #AAFB71
analogous
#7D71FB #C271FB #FB71EF
triadic
#C271FB #FBC271 #71FBC2
tetradic
#C271FB #FB7D71 #AAFB71 #71EFFB
square
#C271FB #FB7D71 #AAFB71 #71EFFB
split-complementary
#C271FB #EFFB71 #71FB7D
monochromatic
#8D07EB #A835F9 #C271FB #DCADFD #F2E1FE

Accessibility & contrast

On white

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

On black

7.05
#C271FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C271FB
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271FB#FFFFFF#000000##000000
##C271FB1.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4492FF
Deuteranopia (green-blind)
#6197F8
Tritanopia (blue-blind)
#BA8AAC
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c271fb;
/* rgb */ color: rgb(194, 113, 251);
/* oklch */ color: oklch(69.5% 0.205 309.1);
Tailwind
colors: {
  custom: {
    50: '#d79dfd',
    500: '#c271fb',
    950: '#000000',
  },
}
SCSS
$custom: #c271fb;
$custom-light: #d79dfd;
$custom-dark: #000000;
JSON
{
  "hex": "#c271fb",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 275.217,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.69478,
    "c": 0.20516,
    "h": 309.1
  },
  "luminance": 0.30245
}

Semantic roles & 50–950 ramp

primary
#C271FB
secondary
#E1F6D2
accent
#E6005F
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E18
muted
#837E86

Preview Lab

Preview with #C271FB

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

Preview Lab → · Contrast checker → · Palette generator →

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