#C781FC#C781FC

#C781FC is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.4% C 0.183 H 308.8°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#C781FC
RGBrgb(199, 129, 252)
HSLhsl(274, 95%, 75%)
HSVhsv(274, 49%, 99%)
CMYKcmyk(21%, 48.8%, 0%, 1.2%)
CIE-LABlab(65.65, 48.90, -51.16)
CIE-LCHlch(65.65, 70.77, 313.71°)
OKLaboklab(72.41% 0.1149 -0.143)
OKLCHoklch(72.41% 0.183 308.8)
XYZxyz(48.9707, 34.8716, 96.2277)
Luminance0.3487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C781FC #B6FC81
analogous
#8981FC #C781FC #FC81F4
triadic
#C781FC #FCC781 #81FCC7
tetradic
#C781FC #FC8981 #B6FC81 #81F4FC
square
#C781FC #FC8981 #B6FC81 #81F4FC
split-complementary
#C781FC #F4FC81 #81FC89
monochromatic
#9209F9 #AC45FB #C781FC #E2BDFD #F2E1FE

Accessibility & contrast

On white

2.63
#C781FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#C781FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C781FC
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C781FC#FFFFFF#000000##000000
##C781FC1.002.637.977.97
#FFFFFF2.631.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#619CFF
Deuteranopia (green-blind)
#75A0F9
Tritanopia (blue-blind)
#C096B3
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #c781fc;
/* rgb */ color: rgb(199, 129, 252);
/* oklch */ color: oklch(72.4% 0.183 308.8);
Tailwind
colors: {
  custom: {
    50: '#daa7fe',
    500: '#c781fc',
    950: '#000000',
  },
}
SCSS
$custom: #c781fc;
$custom-light: #daa7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#c781fc",
  "rgb": {
    "r": 199,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 274.146,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.72412,
    "c": 0.18348,
    "h": 308.8
  },
  "luminance": 0.34871
}

Semantic roles & 50–950 ramp

primary
#C781FC
secondary
#E3F7D4
accent
#E60063
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #C781FC

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

Preview Lab → · Contrast checker → · Palette generator →

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