#C271EC#C271EC

#C271EC is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.6% C 0.189 H 312.9°. Best body text is #000000 at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#C271EC
RGBrgb(194, 113, 236)
HSLhsl(280, 76%, 68%)
HSVhsv(280, 52%, 93%)
CMYKcmyk(17.8%, 52.1%, 0%, 7.5%)
CIE-LABlab(61.08, 52.47, -49.60)
CIE-LCHlch(61.08, 72.20, 316.61°)
OKLaboklab(68.64% 0.1286 -0.1386)
OKLCHoklch(68.64% 0.189 312.9)
XYZxyz(43.2910, 29.3368, 82.7227)
Luminance0.2934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271EC #9BEC71
analogous
#8471EC #C271EC #EC71D9
triadic
#C271EC #ECC271 #71ECC2
tetradic
#C271EC #EC8471 #9BEC71 #71D9EC
square
#C271EC #EC8471 #9BEC71 #71D9EC
split-complementary
#C271EC #D9EC71 #71EC84
monochromatic
#8D1BC8 #AB3BE5 #C271EC #D9A7F3 #F0DDFA

Accessibility & contrast

On white

3.06
#C271EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.87
#C271EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271EC
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271EC#FFFFFF#000000##000000
##C271EC1.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#528FF0
Deuteranopia (green-blind)
#6C95E9
Tritanopia (blue-blind)
#BE85A4
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c271ec;
/* rgb */ color: rgb(194, 113, 236);
/* oklch */ color: oklch(68.6% 0.189 312.9);
Tailwind
colors: {
  custom: {
    50: '#d79cf2',
    500: '#c271ec',
    950: '#000000',
  },
}
SCSS
$custom: #c271ec;
$custom-light: #d79cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#c271ec",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 279.512,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.68643,
    "c": 0.18902,
    "h": 312.9
  },
  "luminance": 0.29336
}

Semantic roles & 50–950 ramp

primary
#C271EC
secondary
#D7EFCA
accent
#D90D52
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271EC

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

Preview Lab → · Contrast checker → · Palette generator →

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