#C271F6#C271F6

#C271F6 is a light, vivid violet. Relative luminance 0.299; OKLCH L 69.2% C 0.200 H 310.3°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#C271F6
RGBrgb(194, 113, 246)
HSLhsl(277, 88%, 70%)
HSVhsv(277, 54%, 96%)
CMYKcmyk(21.1%, 54.1%, 0%, 3.5%)
CIE-LABlab(61.60, 54.60, -54.32)
CIE-LCHlch(61.60, 77.02, 315.15°)
OKLaboklab(69.19% 0.1293 -0.1523)
OKLCHoklch(69.19% 0.2 310.3)
XYZxyz(44.7847, 29.9342, 90.5896)
Luminance0.2993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271F6 #A5F671
analogous
#7F71F6 #C271F6 #F671E8
triadic
#C271F6 #F6C271 #71F6C2
tetradic
#C271F6 #F67F71 #A5F671 #71E8F6
square
#C271F6 #F67F71 #A5F671 #71E8F6
split-complementary
#C271F6 #E8F671 #71F67F
monochromatic
#8D0EDE #A937F2 #C271F6 #DBABFA #F3E2FD

Accessibility & contrast

On white

3.01
#C271F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#C271F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271F6
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271F6#FFFFFF#000000##000000
##C271F61.003.016.996.99
#FFFFFF3.011.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4991FA
Deuteranopia (green-blind)
#6596F3
Tritanopia (blue-blind)
#BB88A9
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c271f6;
/* rgb */ color: rgb(194, 113, 246);
/* oklch */ color: oklch(69.2% 0.200 310.3);
Tailwind
colors: {
  custom: {
    50: '#d79dfa',
    500: '#c271f6',
    950: '#000000',
  },
}
SCSS
$custom: #c271f6;
$custom-light: #d79dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#c271f6",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 246
  },
  "hsl": {
    "h": 276.541,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.69194,
    "c": 0.19976,
    "h": 310.3
  },
  "luminance": 0.29933
}

Semantic roles & 50–950 ramp

primary
#C271F6
secondary
#DDF4CF
accent
#E5015A
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271F6

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

Preview Lab → · Contrast checker → · Palette generator →

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