#C792FD#C792FD

#C792FD is a light, vivid violet. Relative luminance 0.398; OKLCH L 75.2% C 0.158 H 305.8°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#C792FD
RGBrgb(199, 146, 253)
HSLhsl(270, 96%, 78%)
HSVhsv(270, 42%, 99%)
CMYKcmyk(21.3%, 42.3%, 0%, 0.8%)
CIE-LABlab(69.32, 40.01, -45.91)
CIE-LCHlch(69.32, 60.90, 311.07°)
OKLaboklab(75.17% 0.0921 -0.1279)
OKLCHoklch(75.17% 0.158 305.8)
XYZxyz(51.5581, 39.7921, 97.8739)
Luminance0.3979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C792FD #C8FD92
analogous
#9292FD #C792FD #FD92FD
triadic
#C792FD #FDC792 #92FDC7
tetradic
#C792FD #FD9292 #C8FD92 #92FDFD
square
#C792FD #FD9292 #C8FD92 #92FDFD
split-complementary
#C792FD #FDFD92 #92FD92
monochromatic
#891AFB #A856FC #C792FD #E6CEFE #F0E1FE

Accessibility & contrast

On white

2.34
#C792FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#C792FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C792FD
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C792FD#FFFFFF#000000##000000
##C792FD1.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A7FF
Deuteranopia (green-blind)
#85AAFA
Tritanopia (blue-blind)
#BFA3BC
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c792fd;
/* rgb */ color: rgb(199, 146, 253);
/* oklch */ color: oklch(75.2% 0.158 305.8);
Tailwind
colors: {
  custom: {
    50: '#dab3fe',
    500: '#c792fd',
    950: '#000000',
  },
}
SCSS
$custom: #c792fd;
$custom-light: #dab3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#c792fd",
  "rgb": {
    "r": 199,
    "g": 146,
    "b": 253
  },
  "hsl": {
    "h": 269.72,
    "s": 96.396,
    "l": 78.235
  },
  "oklch": {
    "l": 0.75174,
    "c": 0.15762,
    "h": 305.8
  },
  "luminance": 0.39792
}

Semantic roles & 50–950 ramp

primary
#C792FD
secondary
#E6F7D4
accent
#E60074
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #C792FD

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

Preview Lab → · Contrast checker → · Palette generator →

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