#C271F9#C271F9

#C271F9 is a light, highly saturated violet. Relative luminance 0.301; OKLCH L 69.4% C 0.203 H 309.6°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#C271F9
RGBrgb(194, 113, 249)
HSLhsl(276, 92%, 71%)
HSVhsv(276, 55%, 98%)
CMYKcmyk(22.1%, 54.6%, 0%, 2.4%)
CIE-LABlab(61.76, 55.25, -55.72)
CIE-LCHlch(61.76, 78.47, 314.76°)
OKLaboklab(69.36% 0.1294 -0.1564)
OKLCHoklch(69.36% 0.203 309.6)
XYZxyz(45.2489, 30.1199, 93.0342)
Luminance0.3012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271F9 #A8F971
analogous
#7E71F9 #C271F9 #F971EC
triadic
#C271F9 #F9C271 #71F9C2
tetradic
#C271F9 #F97E71 #A8F971 #71ECF9
square
#C271F9 #F97E71 #A8F971 #71ECF9
split-complementary
#C271F9 #ECF971 #71F97E
monochromatic
#8D0AE6 #A936F7 #C271F9 #DBACFB #F2E2FE

Accessibility & contrast

On white

2.99
#C271F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#C271F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C271F9
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271F9#FFFFFF#000000##000000
##C271F91.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4692FD
Deuteranopia (green-blind)
#6396F6
Tritanopia (blue-blind)
#BB89AB
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c271f9;
/* rgb */ color: rgb(194, 113, 249);
/* oklch */ color: oklch(69.4% 0.203 309.6);
Tailwind
colors: {
  custom: {
    50: '#d79dfc',
    500: '#c271f9',
    950: '#000000',
  },
}
SCSS
$custom: #c271f9;
$custom-light: #d79dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#c271f9",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 249
  },
  "hsl": {
    "h": 275.735,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.69364,
    "c": 0.203,
    "h": 309.6
  },
  "luminance": 0.30119
}

Semantic roles & 50–950 ramp

primary
#C271F9
secondary
#DFF5D1
accent
#E6005D
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271F9

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

Preview Lab → · Contrast checker → · Palette generator →

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