#C784F2#C784F2

#C784F2 is a light, vivid violet. Relative luminance 0.351; OKLCH L 72.4% C 0.167 H 310.9°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#C784F2
RGBrgb(199, 132, 242)
HSLhsl(277, 81%, 73%)
HSVhsv(277, 45%, 95%)
CMYKcmyk(17.8%, 45.5%, 0%, 5.1%)
CIE-LABlab(65.79, 45.14, -45.44)
CIE-LCHlch(65.79, 64.05, 314.81°)
OKLaboklab(72.36% 0.1096 -0.1264)
OKLCHoklch(72.36% 0.167 310.9)
XYZxyz(47.8286, 35.0563, 88.2341)
Luminance0.3505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C784F2 #AFF284
analogous
#9084F2 #C784F2 #F284E6
triadic
#C784F2 #F2C784 #84F2C7
tetradic
#C784F2 #F29084 #AFF284 #84E6F2
square
#C784F2 #F29084 #AFF284 #84E6F2
split-complementary
#C784F2 #E6F284 #84F290
monochromatic
#9418E4 #AE4DEC #C784F2 #E0BBF8 #F2E3FC

Accessibility & contrast

On white

2.62
#C784F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#C784F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C784F2
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C784F2#FFFFFF#000000##000000
##C784F21.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9DF6
Deuteranopia (green-blind)
#7DA1EF
Tritanopia (blue-blind)
#C295B0
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #c784f2;
/* rgb */ color: rgb(199, 132, 242);
/* oklch */ color: oklch(72.4% 0.167 310.9);
Tailwind
colors: {
  custom: {
    50: '#daa9f7',
    500: '#c784f2',
    950: '#000000',
  },
}
SCSS
$custom: #c784f2;
$custom-light: #daa9f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c784f2",
  "rgb": {
    "r": 199,
    "g": 132,
    "b": 242
  },
  "hsl": {
    "h": 276.545,
    "s": 80.882,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72363,
    "c": 0.16734,
    "h": 310.9
  },
  "luminance": 0.35055
}

Semantic roles & 50–950 ramp

primary
#C784F2
secondary
#E2F4D7
accent
#DD085C
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #C784F2

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

Preview Lab → · Contrast checker → · Palette generator →

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