#C271EF#C271EF

#C271EF is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.8% C 0.192 H 312.1°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#C271EF
RGBrgb(194, 113, 239)
HSLhsl(279, 80%, 69%)
HSVhsv(279, 53%, 94%)
CMYKcmyk(18.8%, 52.7%, 0%, 6.3%)
CIE-LABlab(61.23, 53.10, -51.02)
CIE-LCHlch(61.23, 73.64, 316.14°)
OKLaboklab(68.81% 0.1288 -0.1427)
OKLCHoklch(68.81% 0.192 312.1)
XYZxyz(43.7305, 29.5126, 85.0375)
Luminance0.2951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271EF #9EEF71
analogous
#8371EF #C271EF #EF71DD
triadic
#C271EF #EFC271 #71EFC2
tetradic
#C271EF #EF8371 #9EEF71 #71DDEF
square
#C271EF #EF8371 #9EEF71 #71DDEF
split-complementary
#C271EF #DDEF71 #71EF83
monochromatic
#8D17CE #AA3AE9 #C271EF #DAA8F5 #F1DFFB

Accessibility & contrast

On white

3.04
#C271EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#C271EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271EF
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271EF#FFFFFF#000000##000000
##C271EF1.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F90F3
Deuteranopia (green-blind)
#6A96EC
Tritanopia (blue-blind)
#BD86A6
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c271ef;
/* rgb */ color: rgb(194, 113, 239);
/* oklch */ color: oklch(68.8% 0.192 312.1);
Tailwind
colors: {
  custom: {
    50: '#d79cf5',
    500: '#c271ef',
    950: '#000000',
  },
}
SCSS
$custom: #c271ef;
$custom-light: #d79cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#c271ef",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 278.571,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.68806,
    "c": 0.19223,
    "h": 312.1
  },
  "luminance": 0.29512
}

Semantic roles & 50–950 ramp

primary
#C271EF
secondary
#D9F0CB
accent
#DC0955
background
#FDF9FF
surface
#FBF2FE
border
#D4CCD6
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271EF

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

Preview Lab → · Contrast checker → · Palette generator →

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