#C271F8#C271F8

#C271F8 is a light, highly saturated violet. Relative luminance 0.301; OKLCH L 69.3% C 0.202 H 309.8°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#C271F8
RGBrgb(194, 113, 248)
HSLhsl(276, 91%, 71%)
HSVhsv(276, 54%, 97%)
CMYKcmyk(21.8%, 54.4%, 0%, 2.7%)
CIE-LABlab(61.70, 55.04, -55.25)
CIE-LCHlch(61.70, 77.99, 314.89°)
OKLaboklab(69.31% 0.1294 -0.155)
OKLCHoklch(69.31% 0.202 309.8)
XYZxyz(45.0933, 30.0577, 92.2150)
Luminance0.3006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C271F8 #A7F871
analogous
#7E71F8 #C271F8 #F871EA
triadic
#C271F8 #F8C271 #71F8C2
tetradic
#C271F8 #F87E71 #A7F871 #71EAF8
square
#C271F8 #F87E71 #A7F871 #71EAF8
split-complementary
#C271F8 #EAF871 #71F87E
monochromatic
#8D0BE3 #A937F5 #C271F8 #DBABFB #F2E2FE

Accessibility & contrast

On white

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

On black

7.01
#C271F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C271F8
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C271F8#FFFFFF#000000##000000
##C271F81.003.007.017.01
#FFFFFF3.001.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4791FC
Deuteranopia (green-blind)
#6496F5
Tritanopia (blue-blind)
#BB89AA
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #c271f8;
/* rgb */ color: rgb(194, 113, 248);
/* oklch */ color: oklch(69.3% 0.202 309.8);
Tailwind
colors: {
  custom: {
    50: '#d79dfb',
    500: '#c271f8',
    950: '#000000',
  },
}
SCSS
$custom: #c271f8;
$custom-light: #d79dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#c271f8",
  "rgb": {
    "r": 194,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 276,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69307,
    "c": 0.20191,
    "h": 309.8
  },
  "luminance": 0.30057
}

Semantic roles & 50–950 ramp

primary
#C271F8
secondary
#DFF5D0
accent
#E6005C
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C271F8

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

Preview Lab → · Contrast checker → · Palette generator →

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