#C781FB#C781FB

#C781FB is a light, vivid violet. Relative luminance 0.348; OKLCH L 72.4% C 0.182 H 309.0°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#C781FB
RGBrgb(199, 129, 251)
HSLhsl(274, 94%, 75%)
HSVhsv(274, 49%, 98%)
CMYKcmyk(20.7%, 48.6%, 0%, 1.6%)
CIE-LABlab(65.60, 48.69, -50.69)
CIE-LCHlch(65.60, 70.28, 313.85°)
OKLaboklab(72.36% 0.1148 -0.1417)
OKLCHoklch(72.36% 0.182 309)
XYZxyz(48.8127, 34.8084, 95.3953)
Luminance0.3481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C781FB #B5FB81
analogous
#8A81FB #C781FB #FB81F2
triadic
#C781FB #FBC781 #81FBC7
tetradic
#C781FB #FB8A81 #B5FB81 #81F2FB
square
#C781FB #FB8A81 #B5FB81 #81F2FB
split-complementary
#C781FB #F2FB81 #81FB8A
monochromatic
#920AF7 #AD46F9 #C781FB #E1BCFD #F2E1FE

Accessibility & contrast

On white

2.64
#C781FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#C781FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C781FB
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C781FB#FFFFFF#000000##000000
##C781FB1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c781fb;
/* rgb */ color: rgb(199, 129, 251);
/* oklch */ color: oklch(72.4% 0.182 309.0);
Tailwind
colors: {
  custom: {
    50: '#daa7fd',
    500: '#c781fb',
    950: '#000000',
  },
}
SCSS
$custom: #c781fb;
$custom-light: #daa7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#c781fb",
  "rgb": {
    "r": 199,
    "g": 129,
    "b": 251
  },
  "hsl": {
    "h": 274.426,
    "s": 93.846,
    "l": 74.51
  },
  "oklch": {
    "l": 0.72359,
    "c": 0.18234,
    "h": 309
  },
  "luminance": 0.34808
}

Semantic roles & 50–950 ramp

primary
#C781FB
secondary
#E3F6D5
accent
#E60062
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #C781FB

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

Preview Lab → · Contrast checker → · Palette generator →

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