#C792EC#C792EC

#C792EC is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.4% C 0.137 H 310.4°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#C792EC
RGBrgb(199, 146, 236)
HSLhsl(275, 70%, 75%)
HSVhsv(275, 38%, 93%)
CMYKcmyk(15.7%, 38.1%, 0%, 7.5%)
CIE-LABlab(68.57, 36.29, -37.79)
CIE-LCHlch(68.57, 52.39, 313.84°)
OKLaboklab(74.37% 0.089 -0.1044)
OKLCHoklch(74.37% 0.137 310.4)
XYZxyz(48.9697, 38.7567, 84.2417)
Luminance0.3876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C792EC #B7EC92
analogous
#9A92EC #C792EC #EC92E4
triadic
#C792EC #ECC792 #92ECC7
tetradic
#C792EC #EC9A92 #B7EC92 #92E4EC
square
#C792EC #EC9A92 #B7EC92 #92E4EC
split-complementary
#C792EC #E4EC92 #92EC9A
monochromatic
#912ADA #AC5EE3 #C792EC #E2C6F5 #F2E5FA

Accessibility & contrast

On white

2.40
#C792EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#C792EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C792EC
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C792EC#FFFFFF#000000##000000
##C792EC1.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A5EF
Deuteranopia (green-blind)
#8DA8E9
Tritanopia (blue-blind)
#C39FB4
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c792ec;
/* rgb */ color: rgb(199, 146, 236);
/* oklch */ color: oklch(74.4% 0.137 310.4);
Tailwind
colors: {
  custom: {
    50: '#d9b2f2',
    500: '#c792ec',
    950: '#000000',
  },
}
SCSS
$custom: #c792ec;
$custom-light: #d9b2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#c792ec",
  "rgb": {
    "r": 199,
    "g": 146,
    "b": 236
  },
  "hsl": {
    "h": 275.333,
    "s": 70.313,
    "l": 74.902
  },
  "oklch": {
    "l": 0.74366,
    "c": 0.1372,
    "h": 310.4
  },
  "luminance": 0.38756
}

Semantic roles & 50–950 ramp

primary
#C792EC
secondary
#E3F2D9
accent
#D21362
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C792EC

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

Preview Lab → · Contrast checker → · Palette generator →

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