#C271F2#C271F2

#C271F2 is a light, vivid violet. Relative luminance 0.297; OKLCH L 69.0% C 0.195 H 311.3°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#C271F2
RGBrgb(194, 113, 242)
HSLhsl(278, 83%, 70%)
HSVhsv(278, 53%, 95%)
CMYKcmyk(19.8%, 53.3%, 0%, 5.1%)
CIE-LABlab(61.39, 53.74, -52.44)
CIE-LCHlch(61.39, 75.09, 315.70°)
OKLaboklab(68.97% 0.129 -0.1468)
OKLCHoklch(68.97% 0.195 311.3)
XYZxyz(44.1774, 29.6913, 87.3910)
Luminance0.2969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271F2 #A1F271
analogous
#8171F2 #C271F2 #F271E2
triadic
#C271F2 #F2C271 #71F2C2
tetradic
#C271F2 #F28171 #A1F271 #71E2F2
square
#C271F2 #F28171 #A1F271 #71E2F2
split-complementary
#C271F2 #E2F271 #71F281
monochromatic
#8D14D5 #AA39ED #C271F2 #DAA9F7 #F2E1FC

Accessibility & contrast

On white

3.03
#C271F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#C271F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C271F2
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271F2#FFFFFF#000000##000000
##C271F21.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D90F6
Deuteranopia (green-blind)
#6896EF
Tritanopia (blue-blind)
#BD87A7
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #c271f2;
/* rgb */ color: rgb(194, 113, 242);
/* oklch */ color: oklch(69.0% 0.195 311.3);
Tailwind
colors: {
  custom: {
    50: '#d79df7',
    500: '#c271f2',
    950: '#000000',
  },
}
SCSS
$custom: #c271f2;
$custom-light: #d79df7;
$custom-dark: #000000;
JSON
{
  "hex": "#c271f2",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 277.674,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.68971,
    "c": 0.19546,
    "h": 311.3
  },
  "luminance": 0.2969
}

Semantic roles & 50–950 ramp

primary
#C271F2
secondary
#DBF2CD
accent
#E00657
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271F2

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

Preview Lab → · Contrast checker → · Palette generator →

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