#C871F8#C871F8

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

Color values

HEX#C871F8
RGBrgb(200, 113, 248)
HSLhsl(279, 91%, 71%)
HSVhsv(279, 54%, 97%)
CMYKcmyk(19.4%, 54.4%, 0%, 2.7%)
CIE-LABlab(62.40, 56.53, -54.11)
CIE-LCHlch(62.40, 78.25, 316.25°)
OKLaboklab(69.97% 0.1366 -0.1515)
OKLCHoklch(69.97% 0.204 312)
XYZxyz(46.6648, 30.8680, 92.2886)
Luminance0.3087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C871F8 #A1F871
analogous
#8471F8 #C871F8 #F871E4
triadic
#C871F8 #F8C871 #71F8C8
tetradic
#C871F8 #F88471 #A1F871 #71E4F8
square
#C871F8 #F88471 #A1F871 #71E4F8
split-complementary
#C871F8 #E4F871 #71F884
monochromatic
#970BE3 #B137F5 #C871F8 #DFABFB #F4E2FE

Accessibility & contrast

On white

2.93
#C871F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#C871F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C871F8
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C871F8#FFFFFF#000000##000000
##C871F81.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B92FC
Deuteranopia (green-blind)
#6999F5
Tritanopia (blue-blind)
#C388AA
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #c871f8;
/* rgb */ color: rgb(200, 113, 248);
/* oklch */ color: oklch(70.0% 0.204 312.0);
Tailwind
colors: {
  custom: {
    50: '#dc9dfb',
    500: '#c871f8',
    950: '#000000',
  },
}
SCSS
$custom: #c871f8;
$custom-light: #dc9dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#c871f8",
  "rgb": {
    "r": 200,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 278.667,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.69967,
    "c": 0.204,
    "h": 312
  },
  "luminance": 0.30867
}

Semantic roles & 50–950 ramp

primary
#C871F8
secondary
#DDF5D0
accent
#E60052
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150F17
muted
#837E85

Preview Lab

Preview with #C871F8

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

Preview Lab → · Contrast checker → · Palette generator →

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