#C840B8#C840B8

#C840B8 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.7% C 0.215 H 333.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#C840B8
RGBrgb(200, 64, 184)
HSLhsl(307, 55%, 52%)
HSVhsv(307, 68%, 78%)
CMYKcmyk(0%, 68%, 8%, 21.6%)
CIE-LABlab(51.16, 66.50, -35.65)
CIE-LCHlch(51.16, 75.45, 331.80°)
OKLaboklab(60.72% 0.1916 -0.0977)
OKLCHoklch(60.72% 0.215 333)
XYZxyz(34.3047, 19.4096, 47.2778)
Luminance0.1941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840B8 #40C850
analogous
#9440C8 #C840B8 #C84074
triadic
#C840B8 #B8C840 #40B8C8
tetradic
#C840B8 #C89440 #40C850 #4074C8
square
#C840B8 #C89440 #40C850 #4074C8
split-complementary
#C840B8 #74C840 #40C894
monochromatic
#6E2065 #9D2D90 #C840B8 #D670CA #E39FDB

Accessibility & contrast

On white

4.30
#C840B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#C840B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840B8
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840B8#FFFFFF#000000##000000
##C840B81.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6DBB
Deuteranopia (green-blind)
#6B81B5
Tritanopia (blue-blind)
#D14C77
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c840b8;
/* rgb */ color: rgb(200, 64, 184);
/* oklch */ color: oklch(60.7% 0.215 333.0);
Tailwind
colors: {
  custom: {
    50: '#dc80cd',
    500: '#c840b8',
    950: '#000000',
  },
}
SCSS
$custom: #c840b8;
$custom-light: #dc80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c840b8",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 307.059,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.60722,
    "c": 0.21511,
    "h": 333
  },
  "luminance": 0.19407
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C840B8

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

Preview Lab → · Contrast checker → · Palette generator →

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