#C792EF#C792EF

#C792EF is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.5% C 0.141 H 309.5°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#C792EF
RGBrgb(199, 146, 239)
HSLhsl(274, 74%, 75%)
HSVhsv(274, 39%, 94%)
CMYKcmyk(16.7%, 38.9%, 0%, 6.3%)
CIE-LABlab(68.70, 36.93, -39.23)
CIE-LCHlch(68.70, 53.88, 313.27°)
OKLaboklab(74.51% 0.0896 -0.1086)
OKLCHoklch(74.51% 0.141 309.5)
XYZxyz(49.4092, 38.9325, 86.5565)
Luminance0.3893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C792EF #BAEF92
analogous
#9892EF #C792EF #EF92E8
triadic
#C792EF #EFC792 #92EFC7
tetradic
#C792EF #EF9892 #BAEF92 #92E8EF
square
#C792EF #EF9892 #BAEF92 #92E8EF
split-complementary
#C792EF #E8EF92 #92EF98
monochromatic
#9027DF #AC5DE7 #C792EF #E2C7F7 #F1E4FB

Accessibility & contrast

On white

2.39
#C792EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#C792EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C792EF
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C792EF#FFFFFF#000000##000000
##C792EF1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA5F2
Deuteranopia (green-blind)
#8CA9EC
Tritanopia (blue-blind)
#C2A0B5
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c792ef;
/* rgb */ color: rgb(199, 146, 239);
/* oklch */ color: oklch(74.5% 0.141 309.5);
Tailwind
colors: {
  custom: {
    50: '#d9b2f4',
    500: '#c792ef',
    950: '#000000',
  },
}
SCSS
$custom: #c792ef;
$custom-light: #d9b2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#c792ef",
  "rgb": {
    "r": 199,
    "g": 146,
    "b": 239
  },
  "hsl": {
    "h": 274.194,
    "s": 74.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.74505,
    "c": 0.14078,
    "h": 309.5
  },
  "luminance": 0.38932
}

Semantic roles & 50–950 ramp

primary
#C792EF
secondary
#E4F3D8
accent
#D70F65
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C792EF

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

Preview Lab → · Contrast checker → · Palette generator →

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