#C840BD#C840BD

#C840BD is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.0% C 0.219 H 331.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#C840BD
RGBrgb(200, 64, 189)
HSLhsl(305, 55%, 52%)
HSVhsv(305, 68%, 78%)
CMYKcmyk(0%, 68%, 5.5%, 21.6%)
CIE-LABlab(51.41, 67.28, -38.17)
CIE-LCHlch(51.41, 77.35, 330.43°)
OKLaboklab(60.98% 0.192 -0.1049)
OKLCHoklch(60.98% 0.219 331.3)
XYZxyz(34.8381, 19.6230, 50.0870)
Luminance0.1962 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840BD #40C84B
analogous
#8F40C8 #C840BD #C84079
triadic
#C840BD #BDC840 #40BDC8
tetradic
#C840BD #C88F40 #40C84B #4079C8
square
#C840BD #C88F40 #40C84B #4079C8
split-complementary
#C840BD #79C840 #40C88F
monochromatic
#6E2068 #9D2D94 #C840BD #D670CD #E39FDE

Accessibility & contrast

On white

4.26
#C840BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#C840BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840BD
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840BD#FFFFFF#000000##000000
##C840BD1.004.264.924.92
#FFFFFF4.261.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#376EC1
Deuteranopia (green-blind)
#6981BA
Tritanopia (blue-blind)
#D04F79
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c840bd;
/* rgb */ color: rgb(200, 64, 189);
/* oklch */ color: oklch(61.0% 0.219 331.3);
Tailwind
colors: {
  custom: {
    50: '#dc80d1',
    500: '#c840bd',
    950: '#000000',
  },
}
SCSS
$custom: #c840bd;
$custom-light: #dc80d1;
$custom-dark: #000000;
JSON
{
  "hex": "#c840bd",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 304.853,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.60979,
    "c": 0.21883,
    "h": 331.3
  },
  "luminance": 0.1962
}

Semantic roles & 50–950 ramp

primary
#C840BD
secondary
#94D099
accent
#DF5549
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#150B14
muted
#847C82

Preview Lab

Preview with #C840BD

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

Preview Lab → · Contrast checker → · Palette generator →

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