#C871F9#C871F9

#C871F9 is a light, highly saturated violet. Relative luminance 0.309; OKLCH L 70.0% C 0.205 H 311.8°. Best body text is #000000 at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#C871F9
RGBrgb(200, 113, 249)
HSLhsl(278, 92%, 71%)
HSVhsv(278, 55%, 98%)
CMYKcmyk(19.7%, 54.6%, 0%, 2.4%)
CIE-LABlab(62.45, 56.74, -54.58)
CIE-LCHlch(62.45, 78.73, 316.11°)
OKLaboklab(70.02% 0.1366 -0.1529)
OKLCHoklch(70.02% 0.205 311.8)
XYZxyz(46.8204, 30.9302, 93.1079)
Luminance0.3093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C871F9 #A2F971
analogous
#8471F9 #C871F9 #F971E6
triadic
#C871F9 #F9C871 #71F9C8
tetradic
#C871F9 #F98471 #A2F971 #71E6F9
square
#C871F9 #F98471 #A2F971 #71E6F9
split-complementary
#C871F9 #E6F971 #71F984
monochromatic
#970AE6 #B136F7 #C871F9 #DFACFB #F4E2FE

Accessibility & contrast

On white

2.92
#C871F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#C871F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C871F9
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C871F9#FFFFFF#000000##000000
##C871F91.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A93FD
Deuteranopia (green-blind)
#6899F6
Tritanopia (blue-blind)
#C389AB
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #c871f9;
/* rgb */ color: rgb(200, 113, 249);
/* oklch */ color: oklch(70.0% 0.205 311.8);
Tailwind
colors: {
  custom: {
    50: '#dc9dfc',
    500: '#c871f9',
    950: '#000000',
  },
}
SCSS
$custom: #c871f9;
$custom-light: #dc9dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#c871f9",
  "rgb": {
    "r": 200,
    "g": 113,
    "b": 249
  },
  "hsl": {
    "h": 278.382,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.70023,
    "c": 0.20505,
    "h": 311.8
  },
  "luminance": 0.30929
}

Semantic roles & 50–950 ramp

primary
#C871F9
secondary
#DEF5D1
accent
#E60053
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150F17
muted
#837E85

Preview Lab

Preview with #C871F9

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

Preview Lab → · Contrast checker → · Palette generator →

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