#C877F2#C877F2

#C877F2 is a light, vivid violet. Relative luminance 0.319; OKLCH L 70.5% C 0.188 H 312.9°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#C877F2
RGBrgb(200, 119, 242)
HSLhsl(280, 83%, 71%)
HSVhsv(280, 51%, 95%)
CMYKcmyk(17.4%, 50.8%, 0%, 5.1%)
CIE-LABlab(63.25, 52.23, -49.45)
CIE-LCHlch(63.25, 71.92, 316.57°)
OKLaboklab(70.49% 0.1283 -0.138)
OKLCHoklch(70.49% 0.188 312.9)
XYZxyz(46.4405, 31.8849, 87.6952)
Luminance0.3188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C877F2 #A1F277
analogous
#8A77F2 #C877F2 #F277DE
triadic
#C877F2 #F2C877 #77F2C8
tetradic
#C877F2 #F28A77 #A1F277 #77DEF2
square
#C877F2 #F28A77 #A1F277 #77DEF2
split-complementary
#C877F2 #DEF277 #77F28A
monochromatic
#9715DA #B13FED #C877F2 #DFAFF7 #F4E3FC

Accessibility & contrast

On white

2.85
#C877F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#C877F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C877F2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C877F2#FFFFFF#000000##000000
##C877F21.002.857.387.38
#FFFFFF2.851.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5995F6
Deuteranopia (green-blind)
#729BEF
Tritanopia (blue-blind)
#C48BAA
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #c877f2;
/* rgb */ color: rgb(200, 119, 242);
/* oklch */ color: oklch(70.5% 0.188 312.9);
Tailwind
colors: {
  custom: {
    50: '#dba1f7',
    500: '#c877f2',
    950: '#000000',
  },
}
SCSS
$custom: #c877f2;
$custom-light: #dba1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c877f2",
  "rgb": {
    "r": 200,
    "g": 119,
    "b": 242
  },
  "hsl": {
    "h": 279.512,
    "s": 82.55,
    "l": 70.784
  },
  "oklch": {
    "l": 0.70495,
    "c": 0.18843,
    "h": 312.9
  },
  "luminance": 0.31884
}

Semantic roles & 50–950 ramp

primary
#C877F2
secondary
#DDF3D2
accent
#DF0750
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C877F2

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

Preview Lab → · Contrast checker → · Palette generator →

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