#C840BF#C840BF

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

Color values

HEX#C840BF
RGBrgb(200, 64, 191)
HSLhsl(304, 55%, 52%)
HSVhsv(304, 68%, 78%)
CMYKcmyk(0%, 68%, 4.5%, 21.6%)
CIE-LABlab(51.51, 67.59, -39.17)
CIE-LCHlch(51.51, 78.12, 329.91°)
OKLaboklab(61.08% 0.1921 -0.1078)
OKLCHoklch(61.08% 0.22 330.7)
XYZxyz(35.0567, 19.7104, 51.2382)
Luminance0.1971 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840BF #40C849
analogous
#8D40C8 #C840BF #C8407B
triadic
#C840BF #BFC840 #40BFC8
tetradic
#C840BF #C88D40 #40C849 #407BC8
square
#C840BF #C88D40 #40C849 #407BC8
split-complementary
#C840BF #7BC840 #40C88D
monochromatic
#6E2069 #9D2D96 #C840BF #D670CF #E39FDF

Accessibility & contrast

On white

4.25
#C840BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#C840BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840BF
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840BF#FFFFFF#000000##000000
##C840BF1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#356FC3
Deuteranopia (green-blind)
#6881BC
Tritanopia (blue-blind)
#D0507B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c840bf;
/* rgb */ color: rgb(200, 64, 191);
/* oklch */ color: oklch(61.1% 0.220 330.7);
Tailwind
colors: {
  custom: {
    50: '#dc80d3',
    500: '#c840bf',
    950: '#000000',
  },
}
SCSS
$custom: #c840bf;
$custom-light: #dc80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#c840bf",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 303.971,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.61084,
    "c": 0.22033,
    "h": 330.7
  },
  "luminance": 0.19708
}

Semantic roles & 50–950 ramp

primary
#C840BF
secondary
#94D098
accent
#DF5349
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#150B14
muted
#847C83

Preview Lab

Preview with #C840BF

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

Preview Lab → · Contrast checker → · Palette generator →

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