#C271F4#C271F4

#C271F4 is a light, vivid violet. Relative luminance 0.298; OKLCH L 69.1% C 0.198 H 310.8°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#C271F4
RGBrgb(194, 113, 244)
HSLhsl(277, 86%, 70%)
HSVhsv(277, 54%, 96%)
CMYKcmyk(20.5%, 53.7%, 0%, 4.3%)
CIE-LABlab(61.49, 54.17, -53.38)
CIE-LCHlch(61.49, 76.05, 315.42°)
OKLaboklab(69.08% 0.1291 -0.1496)
OKLCHoklch(69.08% 0.198 310.8)
XYZxyz(44.4794, 29.8121, 88.9816)
Luminance0.2981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271F4 #A3F471
analogous
#8071F4 #C271F4 #F471E5
triadic
#C271F4 #F4C271 #71F4C2
tetradic
#C271F4 #F48071 #A3F471 #71E5F4
square
#C271F4 #F48071 #A3F471 #71E5F4
split-complementary
#C271F4 #E5F471 #71F480
monochromatic
#8D11DA #AA38F0 #C271F4 #DAAAF8 #F3E3FD

Accessibility & contrast

On white

3.02
#C271F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#C271F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271F4
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271F4#FFFFFF#000000##000000
##C271F41.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B91F8
Deuteranopia (green-blind)
#6696F1
Tritanopia (blue-blind)
#BC88A8
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c271f4;
/* rgb */ color: rgb(194, 113, 244);
/* oklch */ color: oklch(69.1% 0.198 310.8);
Tailwind
colors: {
  custom: {
    50: '#d79df8',
    500: '#c271f4',
    950: '#000000',
  },
}
SCSS
$custom: #c271f4;
$custom-light: #d79df8;
$custom-dark: #000000;
JSON
{
  "hex": "#c271f4",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 244
  },
  "hsl": {
    "h": 277.099,
    "s": 85.621,
    "l": 70
  },
  "oklch": {
    "l": 0.69082,
    "c": 0.19761,
    "h": 310.8
  },
  "luminance": 0.29811
}

Semantic roles & 50–950 ramp

primary
#C271F4
secondary
#DCF3CE
accent
#E20358
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271F4

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

Preview Lab → · Contrast checker → · Palette generator →

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