#C780F2#C780F2

#C780F2 is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.7% C 0.174 H 311.5°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#C780F2
RGBrgb(199, 128, 242)
HSLhsl(277, 81%, 73%)
HSVhsv(277, 47%, 95%)
CMYKcmyk(17.8%, 47.1%, 0%, 5.1%)
CIE-LABlab(64.96, 47.27, -46.76)
CIE-LCHlch(64.96, 66.49, 315.31°)
OKLaboklab(71.74% 0.1151 -0.1302)
OKLCHoklch(71.74% 0.174 311.5)
XYZxyz(47.2965, 33.9922, 88.0568)
Luminance0.3399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C780F2 #ABF280
analogous
#8E80F2 #C780F2 #F280E4
triadic
#C780F2 #F2C780 #80F2C7
tetradic
#C780F2 #F28E80 #ABF280 #80E4F2
square
#C780F2 #F28E80 #ABF280 #80E4F2
split-complementary
#C780F2 #E4F280 #80F28E
monochromatic
#9517E1 #AF48EC #C780F2 #DFB8F8 #F3E3FC

Accessibility & contrast

On white

2.69
#C780F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#C780F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C780F2
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C780F2#FFFFFF#000000##000000
##C780F21.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#669AF6
Deuteranopia (green-blind)
#7A9FEF
Tritanopia (blue-blind)
#C292AE
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #c780f2;
/* rgb */ color: rgb(199, 128, 242);
/* oklch */ color: oklch(71.7% 0.174 311.5);
Tailwind
colors: {
  custom: {
    50: '#daa6f7',
    500: '#c780f2',
    950: '#000000',
  },
}
SCSS
$custom: #c780f2;
$custom-light: #daa6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c780f2",
  "rgb": {
    "r": 199,
    "g": 128,
    "b": 242
  },
  "hsl": {
    "h": 277.368,
    "s": 81.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.71739,
    "c": 0.1738,
    "h": 311.5
  },
  "luminance": 0.33991
}

Semantic roles & 50–950 ramp

primary
#C780F2
secondary
#E2F4D7
accent
#DE0858
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C780F2

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

Preview Lab → · Contrast checker → · Palette generator →

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