#C840B9#C840B9

#C840B9 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.8% C 0.216 H 332.7°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#C840B9
RGBrgb(200, 64, 185)
HSLhsl(307, 55%, 52%)
HSVhsv(307, 68%, 78%)
CMYKcmyk(0%, 68%, 7.5%, 21.6%)
CIE-LABlab(51.21, 66.65, -36.15)
CIE-LCHlch(51.21, 75.83, 331.52°)
OKLaboklab(60.77% 0.1917 -0.0991)
OKLCHoklch(60.77% 0.216 332.7)
XYZxyz(34.4099, 19.4517, 47.8318)
Luminance0.1945 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840B9 #40C84F
analogous
#9340C8 #C840B9 #C84075
triadic
#C840B9 #B9C840 #40B9C8
tetradic
#C840B9 #C89340 #40C84F #4075C8
square
#C840B9 #C89340 #40C84F #4075C8
split-complementary
#C840B9 #75C840 #40C893
monochromatic
#6E2065 #9D2D91 #C840B9 #D670CA #E39FDC

Accessibility & contrast

On white

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

On black

4.89
#C840B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840B9
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840B9#FFFFFF#000000##000000
##C840B91.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A6EBC
Deuteranopia (green-blind)
#6B81B6
Tritanopia (blue-blind)
#D14D77
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c840b9;
/* rgb */ color: rgb(200, 64, 185);
/* oklch */ color: oklch(60.8% 0.216 332.7);
Tailwind
colors: {
  custom: {
    50: '#dc80ce',
    500: '#c840b9',
    950: '#000000',
  },
}
SCSS
$custom: #c840b9;
$custom-light: #dc80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#c840b9",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 306.618,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.60773,
    "c": 0.21584,
    "h": 332.7
  },
  "luminance": 0.19449
}

Semantic roles & 50–950 ramp

primary
#C840B9
secondary
#94D09B
accent
#DF5A49
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#150B13
muted
#847C82

Preview Lab

Preview with #C840B9

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

Preview Lab → · Contrast checker → · Palette generator →

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