#C840BE#C840BE

#C840BE is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.0% C 0.220 H 331.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#C840BE
RGBrgb(200, 64, 190)
HSLhsl(304, 55%, 52%)
HSVhsv(304, 68%, 78%)
CMYKcmyk(0%, 68%, 5%, 21.6%)
CIE-LABlab(51.46, 67.43, -38.67)
CIE-LCHlch(51.46, 77.73, 330.17°)
OKLaboklab(61.03% 0.1921 -0.1064)
OKLCHoklch(61.03% 0.22 331)
XYZxyz(34.9470, 19.6665, 50.6606)
Luminance0.1966 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840BE #40C84A
analogous
#8E40C8 #C840BE #C8407A
triadic
#C840BE #BEC840 #40BEC8
tetradic
#C840BE #C88E40 #40C84A #407AC8
square
#C840BE #C88E40 #40C84A #407AC8
split-complementary
#C840BE #7AC840 #40C88E
monochromatic
#6E2068 #9D2D95 #C840BE #D670CE #E39FDE

Accessibility & contrast

On white

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

On black

4.93
#C840BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840BE
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840BE#FFFFFF#000000##000000
##C840BE1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#366FC2
Deuteranopia (green-blind)
#6881BB
Tritanopia (blue-blind)
#D04F7A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c840be;
/* rgb */ color: rgb(200, 64, 190);
/* oklch */ color: oklch(61.0% 0.220 331.0);
Tailwind
colors: {
  custom: {
    50: '#dc80d2',
    500: '#c840be',
    950: '#000000',
  },
}
SCSS
$custom: #c840be;
$custom-light: #dc80d2;
$custom-dark: #000000;
JSON
{
  "hex": "#c840be",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 304.412,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.61031,
    "c": 0.21958,
    "h": 331
  },
  "luminance": 0.19664
}

Semantic roles & 50–950 ramp

primary
#C840BE
secondary
#94D098
accent
#DF5449
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#150B14
muted
#847C82

Preview Lab

Preview with #C840BE

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

Preview Lab → · Contrast checker → · Palette generator →

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