#C271F5#C271F5

#C271F5 is a light, vivid violet. Relative luminance 0.299; OKLCH L 69.1% C 0.199 H 310.6°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#C271F5
RGBrgb(194, 113, 245)
HSLhsl(277, 87%, 70%)
HSVhsv(277, 54%, 96%)
CMYKcmyk(20.8%, 53.9%, 0%, 3.9%)
CIE-LABlab(61.54, 54.39, -53.85)
CIE-LCHlch(61.54, 76.54, 315.29°)
OKLaboklab(69.14% 0.1292 -0.1509)
OKLCHoklch(69.14% 0.199 310.6)
XYZxyz(44.6316, 29.8730, 89.7834)
Luminance0.2987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271F5 #A4F571
analogous
#8071F5 #C271F5 #F571E6
triadic
#C271F5 #F5C271 #71F5C2
tetradic
#C271F5 #F58071 #A4F571 #71E6F5
square
#C271F5 #F58071 #A4F571 #71E6F5
split-complementary
#C271F5 #E6F571 #71F580
monochromatic
#8D10DC #A938F1 #C271F5 #DBAAF9 #F3E2FD

Accessibility & contrast

On white

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

On black

6.97
#C271F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271F5
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271F5#FFFFFF#000000##000000
##C271F51.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A91F9
Deuteranopia (green-blind)
#6696F2
Tritanopia (blue-blind)
#BC88A9
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c271f5;
/* rgb */ color: rgb(194, 113, 245);
/* oklch */ color: oklch(69.1% 0.199 310.6);
Tailwind
colors: {
  custom: {
    50: '#d79df9',
    500: '#c271f5',
    950: '#000000',
  },
}
SCSS
$custom: #c271f5;
$custom-light: #d79df9;
$custom-dark: #000000;
JSON
{
  "hex": "#c271f5",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 276.818,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.69138,
    "c": 0.19869,
    "h": 310.6
  },
  "luminance": 0.29872
}

Semantic roles & 50–950 ramp

primary
#C271F5
secondary
#DDF3CF
accent
#E30259
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271F5

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

Preview Lab → · Contrast checker → · Palette generator →

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