#C840BA#C840BA

#C840BA is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.8% C 0.217 H 332.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#C840BA
RGBrgb(200, 64, 186)
HSLhsl(306, 55%, 52%)
HSVhsv(306, 68%, 78%)
CMYKcmyk(0%, 68%, 7%, 21.6%)
CIE-LABlab(51.26, 66.81, -36.66)
CIE-LCHlch(51.26, 76.20, 331.24°)
OKLaboklab(60.82% 0.1918 -0.1006)
OKLCHoklch(60.82% 0.217 332.3)
XYZxyz(34.5158, 19.4941, 48.3897)
Luminance0.1949 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840BA #40C84E
analogous
#9240C8 #C840BA #C84076
triadic
#C840BA #BAC840 #40BAC8
tetradic
#C840BA #C89240 #40C84E #4076C8
square
#C840BA #C89240 #40C84E #4076C8
split-complementary
#C840BA #76C840 #40C892
monochromatic
#6E2066 #9D2D92 #C840BA #D670CB #E39FDC

Accessibility & contrast

On white

4.29
#C840BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#C840BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840BA
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840BA#FFFFFF#000000##000000
##C840BA1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#396EBD
Deuteranopia (green-blind)
#6A81B7
Tritanopia (blue-blind)
#D04D78
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c840ba;
/* rgb */ color: rgb(200, 64, 186);
/* oklch */ color: oklch(60.8% 0.217 332.3);
Tailwind
colors: {
  custom: {
    50: '#dc80cf',
    500: '#c840ba',
    950: '#000000',
  },
}
SCSS
$custom: #c840ba;
$custom-light: #dc80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#c840ba",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 306.176,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.60824,
    "c": 0.21659,
    "h": 332.3
  },
  "luminance": 0.19491
}

Semantic roles & 50–950 ramp

primary
#C840BA
secondary
#94D09A
accent
#DF5949
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#150B14
muted
#847C82

Preview Lab

Preview with #C840BA

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

Preview Lab → · Contrast checker → · Palette generator →

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