#C792DC#C792DC

#C792DC is a light, moderate purple. Relative luminance 0.379; OKLCH L 73.7% C 0.118 H 316.1°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#C792DC
RGBrgb(199, 146, 220)
HSLhsl(283, 51%, 72%)
HSVhsv(283, 34%, 86%)
CMYKcmyk(9.5%, 33.6%, 0%, 13.7%)
CIE-LABlab(67.92, 32.94, -29.98)
CIE-LCHlch(67.92, 44.54, 317.69°)
OKLaboklab(73.66% 0.0853 -0.0821)
OKLCHoklch(73.66% 0.118 316.1)
XYZxyz(46.7484, 37.8682, 72.5429)
Luminance0.3787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C792DC #A7DC92
analogous
#A292DC #C792DC #DC92CC
triadic
#C792DC #DCC792 #92DCC7
tetradic
#C792DC #DCA292 #A7DC92 #92CCDC
square
#C792DC #DCA292 #A7DC92 #92CCDC
split-complementary
#C792DC #CCDC92 #92DCA2
monochromatic
#953BB8 #AF64CD #C792DC #DFC0EB #F3E8F8

Accessibility & contrast

On white

2.45
#C792DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#C792DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C792DC
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C792DC#FFFFFF#000000##000000
##C792DC1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A2DF
Deuteranopia (green-blind)
#94A7DA
Tritanopia (blue-blind)
#C69BAD
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #c792dc;
/* rgb */ color: rgb(199, 146, 220);
/* oklch */ color: oklch(73.7% 0.118 316.1);
Tailwind
colors: {
  custom: {
    50: '#d9b2e7',
    500: '#c792dc',
    950: '#000000',
  },
}
SCSS
$custom: #c792dc;
$custom-light: #d9b2e7;
$custom-dark: #000000;
JSON
{
  "hex": "#c792dc",
  "rgb": {
    "r": 199,
    "g": 146,
    "b": 220
  },
  "hsl": {
    "h": 282.973,
    "s": 51.389,
    "l": 71.765
  },
  "oklch": {
    "l": 0.73659,
    "c": 0.11845,
    "h": 316.1
  },
  "luminance": 0.37867
}

Semantic roles & 50–950 ramp

primary
#C792DC
secondary
#E1EEDC
accent
#BF2752
background
#FDFBFE
surface
#FAF6FC
border
#D3D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #C792DC

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

Preview Lab → · Contrast checker → · Palette generator →

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