#C840B2#C840B2

#C840B2 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.4% C 0.211 H 335.0°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#C840B2
RGBrgb(200, 64, 178)
HSLhsl(310, 55%, 52%)
HSVhsv(310, 68%, 78%)
CMYKcmyk(0%, 68%, 11%, 21.6%)
CIE-LABlab(50.88, 65.58, -32.60)
CIE-LCHlch(50.88, 73.24, 333.57°)
OKLaboklab(60.42% 0.1911 -0.0889)
OKLCHoklch(60.42% 0.211 335)
XYZxyz(33.6890, 19.1634, 44.0354)
Luminance0.1916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840B2 #40C856
analogous
#9A40C8 #C840B2 #C8406E
triadic
#C840B2 #B2C840 #40B2C8
tetradic
#C840B2 #C89A40 #40C856 #406EC8
square
#C840B2 #C89A40 #40C856 #406EC8
split-complementary
#C840B2 #6EC840 #40C89A
monochromatic
#6E2061 #9D2D8B #C840B2 #D670C5 #E39FD8

Accessibility & contrast

On white

4.35
#C840B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#C840B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840B2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840B2#FFFFFF#000000##000000
##C840B21.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#406CB5
Deuteranopia (green-blind)
#6E80AF
Tritanopia (blue-blind)
#D24A74
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c840b2;
/* rgb */ color: rgb(200, 64, 178);
/* oklch */ color: oklch(60.4% 0.211 335.0);
Tailwind
colors: {
  custom: {
    50: '#dc80c9',
    500: '#c840b2',
    950: '#000000',
  },
}
SCSS
$custom: #c840b2;
$custom-light: #dc80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c840b2",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 309.706,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.60423,
    "c": 0.21074,
    "h": 335
  },
  "luminance": 0.19161
}

Semantic roles & 50–950 ramp

primary
#C840B2
secondary
#94D09E
accent
#DF6149
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#150B13
muted
#847C82

Preview Lab

Preview with #C840B2

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

Preview Lab → · Contrast checker → · Palette generator →

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