#C271E2#C271E2

#C271E2 is a light, vivid purple. Relative luminance 0.288; OKLCH L 68.1% C 0.178 H 315.7°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#C271E2
RGBrgb(194, 113, 226)
HSLhsl(283, 66%, 66%)
HSVhsv(283, 50%, 89%)
CMYKcmyk(14.2%, 50%, 0%, 11.4%)
CIE-LABlab(60.58, 50.39, -44.82)
CIE-LCHlch(60.58, 67.43, 318.35°)
OKLaboklab(68.11% 0.1276 -0.1247)
OKLCHoklch(68.11% 0.178 315.7)
XYZxyz(41.8786, 28.7718, 75.2842)
Luminance0.2877 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271E2 #91E271
analogous
#8A71E2 #C271E2 #E271CA
triadic
#C271E2 #E2C271 #71E2C2
tetradic
#C271E2 #E28A71 #91E271 #71CAE2
square
#C271E2 #E28A71 #91E271 #71CAE2
split-complementary
#C271E2 #CAE271 #71E28A
monochromatic
#8B25B4 #AC3ED8 #C271E2 #D8A4EC #EED7F7

Accessibility & contrast

On white

3.11
#C271E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#C271E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271E2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271E2#FFFFFF#000000##000000
##C271E21.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#598DE6
Deuteranopia (green-blind)
#7294DF
Tritanopia (blue-blind)
#C0829F
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #c271e2;
/* rgb */ color: rgb(194, 113, 226);
/* oklch */ color: oklch(68.1% 0.178 315.7);
Tailwind
colors: {
  custom: {
    50: '#d79ceb',
    500: '#c271e2',
    950: '#000000',
  },
}
SCSS
$custom: #c271e2;
$custom-light: #d79ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#c271e2",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 283.009,
    "s": 66.082,
    "l": 66.471
  },
  "oklch": {
    "l": 0.68113,
    "c": 0.17837,
    "h": 315.7
  },
  "luminance": 0.28771
}

Semantic roles & 50–950 ramp

primary
#C271E2
secondary
#CFEAC5
accent
#CE184B
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#150E16
muted
#837E84

Preview Lab

Preview with #C271E2

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

Preview Lab → · Contrast checker → · Palette generator →

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