#C840B7#C840B7

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

Color values

HEX#C840B7
RGBrgb(200, 64, 183)
HSLhsl(308, 55%, 52%)
HSVhsv(308, 68%, 78%)
CMYKcmyk(0%, 68%, 8.5%, 21.6%)
CIE-LABlab(51.11, 66.34, -35.14)
CIE-LCHlch(51.11, 75.08, 332.09°)
OKLaboklab(60.67% 0.1916 -0.0962)
OKLCHoklch(60.67% 0.214 333.3)
XYZxyz(34.2002, 19.3678, 46.7277)
Luminance0.1936 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C840B7 #40C851
analogous
#9540C8 #C840B7 #C84073
triadic
#C840B7 #B7C840 #40B7C8
tetradic
#C840B7 #C89540 #40C851 #4073C8
square
#C840B7 #C89540 #40C851 #4073C8
split-complementary
#C840B7 #73C840 #40C895
monochromatic
#6E2064 #9D2D8F #C840B7 #D670C9 #E39FDB

Accessibility & contrast

On white

4.31
#C840B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#C840B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C840B7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C840B7#FFFFFF#000000##000000
##C840B71.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6DBA
Deuteranopia (green-blind)
#6B81B4
Tritanopia (blue-blind)
#D14C76
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c840b7;
/* rgb */ color: rgb(200, 64, 183);
/* oklch */ color: oklch(60.7% 0.214 333.3);
Tailwind
colors: {
  custom: {
    50: '#dc80cd',
    500: '#c840b7',
    950: '#000000',
  },
}
SCSS
$custom: #c840b7;
$custom-light: #dc80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#c840b7",
  "rgb": {
    "r": 200,
    "g": 64,
    "b": 183
  },
  "hsl": {
    "h": 307.5,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.60672,
    "c": 0.21437,
    "h": 333.3
  },
  "luminance": 0.19365
}

Semantic roles & 50–950 ramp

primary
#C840B7
secondary
#94D09C
accent
#DF5C49
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#150B13
muted
#847C82

Preview Lab

Preview with #C840B7

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

Preview Lab → · Contrast checker → · Palette generator →

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