#C271F7#C271F7

#C271F7 is a light, highly saturated violet. Relative luminance 0.300; OKLCH L 69.3% C 0.201 H 310.1°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#C271F7
RGBrgb(194, 113, 247)
HSLhsl(276, 89%, 71%)
HSVhsv(276, 54%, 97%)
CMYKcmyk(21.5%, 54.3%, 0%, 3.1%)
CIE-LABlab(61.65, 54.82, -54.78)
CIE-LCHlch(61.65, 77.50, 315.02°)
OKLaboklab(69.25% 0.1293 -0.1537)
OKLCHoklch(69.25% 0.201 310.1)
XYZxyz(44.9386, 29.9958, 91.4001)
Luminance0.2999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271F7 #A6F771
analogous
#7F71F7 #C271F7 #F771E9
triadic
#C271F7 #F7C271 #71F7C2
tetradic
#C271F7 #F77F71 #A6F771 #71E9F7
square
#C271F7 #F77F71 #A6F771 #71E9F7
split-complementary
#C271F7 #E9F771 #71F77F
monochromatic
#8D0DE1 #A937F4 #C271F7 #DBABFA #F3E2FD

Accessibility & contrast

On white

3.00
#C271F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#C271F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C271F7
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271F7#FFFFFF#000000##000000
##C271F71.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4891FB
Deuteranopia (green-blind)
#6496F4
Tritanopia (blue-blind)
#BB89AA
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c271f7;
/* rgb */ color: rgb(194, 113, 247);
/* oklch */ color: oklch(69.3% 0.201 310.1);
Tailwind
colors: {
  custom: {
    50: '#d79dfa',
    500: '#c271f7',
    950: '#000000',
  },
}
SCSS
$custom: #c271f7;
$custom-light: #d79dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#c271f7",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 276.269,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69251,
    "c": 0.20084,
    "h": 310.1
  },
  "luminance": 0.29995
}

Semantic roles & 50–950 ramp

primary
#C271F7
secondary
#DEF4D0
accent
#E6005B
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271F7

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

Preview Lab → · Contrast checker → · Palette generator →

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