#C271EB#C271EB

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

Color values

HEX#C271EB
RGBrgb(194, 113, 235)
HSLhsl(280, 75%, 68%)
HSVhsv(280, 52%, 92%)
CMYKcmyk(17.4%, 51.9%, 0%, 7.8%)
CIE-LABlab(61.03, 52.26, -49.13)
CIE-LCHlch(61.03, 71.72, 316.77°)
OKLaboklab(68.59% 0.1285 -0.1372)
OKLCHoklch(68.59% 0.188 313.1)
XYZxyz(43.1461, 29.2788, 81.9597)
Luminance0.2928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271EB #9AEB71
analogous
#8571EB #C271EB #EB71D7
triadic
#C271EB #EBC271 #71EBC2
tetradic
#C271EB #EB8571 #9AEB71 #71D7EB
square
#C271EB #EB8571 #9AEB71 #71D7EB
split-complementary
#C271EB #D7EB71 #71EB85
monochromatic
#8D1CC6 #AB3BE3 #C271EB #D9A7F3 #F0DCFA

Accessibility & contrast

On white

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

On black

6.86
#C271EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271EB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271EB#FFFFFF#000000##000000
##C271EB1.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#538FEF
Deuteranopia (green-blind)
#6C95E8
Tritanopia (blue-blind)
#BE85A4
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #c271eb;
/* rgb */ color: rgb(194, 113, 235);
/* oklch */ color: oklch(68.6% 0.188 313.1);
Tailwind
colors: {
  custom: {
    50: '#d79cf2',
    500: '#c271eb',
    950: '#000000',
  },
}
SCSS
$custom: #c271eb;
$custom-light: #d79cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#c271eb",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 279.836,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.68589,
    "c": 0.18794,
    "h": 313.1
  },
  "luminance": 0.29278
}

Semantic roles & 50–950 ramp

primary
#C271EB
secondary
#D6EEC9
accent
#D70E52
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271EB

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

Preview Lab → · Contrast checker → · Palette generator →

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