#C271F3#C271F3

#C271F3 is a light, vivid violet. Relative luminance 0.298; OKLCH L 69.0% C 0.197 H 311.1°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#C271F3
RGBrgb(194, 113, 243)
HSLhsl(277, 84%, 70%)
HSVhsv(277, 53%, 95%)
CMYKcmyk(20.2%, 53.5%, 0%, 4.7%)
CIE-LABlab(61.44, 53.96, -52.91)
CIE-LCHlch(61.44, 75.57, 315.56°)
OKLaboklab(69.03% 0.1291 -0.1482)
OKLCHoklch(69.03% 0.197 311.1)
XYZxyz(44.3280, 29.7516, 88.1841)
Luminance0.2975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271F3 #A2F371
analogous
#8171F3 #C271F3 #F371E3
triadic
#C271F3 #F3C271 #71F3C2
tetradic
#C271F3 #F38171 #A2F371 #71E3F3
square
#C271F3 #F38171 #A2F371 #71E3F3
split-complementary
#C271F3 #E3F371 #71F381
monochromatic
#8D12D7 #AA39EE #C271F3 #DAA9F8 #F2E2FD

Accessibility & contrast

On white

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

On black

6.95
#C271F3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271F3
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271F3#FFFFFF#000000##000000
##C271F31.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C90F7
Deuteranopia (green-blind)
#6796F0
Tritanopia (blue-blind)
#BC87A8
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c271f3;
/* rgb */ color: rgb(194, 113, 243);
/* oklch */ color: oklch(69.0% 0.197 311.1);
Tailwind
colors: {
  custom: {
    50: '#d79df7',
    500: '#c271f3',
    950: '#000000',
  },
}
SCSS
$custom: #c271f3;
$custom-light: #d79df7;
$custom-dark: #000000;
JSON
{
  "hex": "#c271f3",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 243
  },
  "hsl": {
    "h": 277.385,
    "s": 84.416,
    "l": 69.804
  },
  "oklch": {
    "l": 0.69027,
    "c": 0.19653,
    "h": 311.1
  },
  "luminance": 0.29751
}

Semantic roles & 50–950 ramp

primary
#C271F3
secondary
#DBF2CE
accent
#E10558
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271F3

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

Preview Lab → · Contrast checker → · Palette generator →

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