#C792FC#C792FC

#C792FC is a light, vivid violet. Relative luminance 0.397; OKLCH L 75.1% C 0.156 H 306.0°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#C792FC
RGBrgb(199, 146, 252)
HSLhsl(270, 95%, 78%)
HSVhsv(270, 42%, 99%)
CMYKcmyk(21%, 42.1%, 0%, 1.2%)
CIE-LABlab(69.28, 39.79, -45.44)
CIE-LCHlch(69.28, 60.40, 311.21°)
OKLaboklab(75.13% 0.092 -0.1265)
OKLCHoklch(75.13% 0.156 306)
XYZxyz(51.3992, 39.7285, 97.0372)
Luminance0.3973 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C792FC #C7FC92
analogous
#9292FC #C792FC #FC92FC
triadic
#C792FC #FCC792 #92FCC7
tetradic
#C792FC #FC9292 #C7FC92 #92FCFC
square
#C792FC #FC9292 #C7FC92 #92FCFC
split-complementary
#C792FC #FCFC92 #92FC92
monochromatic
#8A1BF9 #A856FA #C792FC #E6CEFE #F0E1FE

Accessibility & contrast

On white

2.35
#C792FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#C792FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C792FC
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C792FC#FFFFFF#000000##000000
##C792FC1.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A7FF
Deuteranopia (green-blind)
#85AAF9
Tritanopia (blue-blind)
#BFA3BB
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c792fc;
/* rgb */ color: rgb(199, 146, 252);
/* oklch */ color: oklch(75.1% 0.156 306.0);
Tailwind
colors: {
  custom: {
    50: '#dab3fe',
    500: '#c792fc',
    950: '#000000',
  },
}
SCSS
$custom: #c792fc;
$custom-light: #dab3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#c792fc",
  "rgb": {
    "r": 199,
    "g": 146,
    "b": 252
  },
  "hsl": {
    "h": 270,
    "s": 94.643,
    "l": 78.039
  },
  "oklch": {
    "l": 0.75125,
    "c": 0.15641,
    "h": 306
  },
  "luminance": 0.39728
}

Semantic roles & 50–950 ramp

primary
#C792FC
secondary
#E6F6D5
accent
#E60073
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C792FC

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

Preview Lab → · Contrast checker → · Palette generator →

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