#C792EA#C792EA

#C792EA is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.3% C 0.135 H 311.1°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#C792EA
RGBrgb(199, 146, 234)
HSLhsl(276, 68%, 75%)
HSVhsv(276, 38%, 92%)
CMYKcmyk(15%, 37.6%, 0%, 8.2%)
CIE-LABlab(68.49, 35.86, -36.82)
CIE-LCHlch(68.49, 51.40, 314.25°)
OKLaboklab(74.28% 0.0886 -0.1017)
OKLCHoklch(74.28% 0.135 311.1)
XYZxyz(48.6807, 38.6411, 82.7199)
Luminance0.3864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C792EA #B5EA92
analogous
#9B92EA #C792EA #EA92E1
triadic
#C792EA #EAC792 #92EAC7
tetradic
#C792EA #EA9B92 #B5EA92 #92E1EA
square
#C792EA #EA9B92 #B5EA92 #92E1EA
split-complementary
#C792EA #E1EA92 #92EA9B
monochromatic
#922BD6 #AD5FE0 #C792EA #E1C5F4 #F2E5FA

Accessibility & contrast

On white

2.41
#C792EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#C792EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C792EA
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C792EA#FFFFFF#000000##000000
##C792EA1.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#81A4ED
Deuteranopia (green-blind)
#8EA8E7
Tritanopia (blue-blind)
#C39EB3
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c792ea;
/* rgb */ color: rgb(199, 146, 234);
/* oklch */ color: oklch(74.3% 0.135 311.1);
Tailwind
colors: {
  custom: {
    50: '#d9b2f1',
    500: '#c792ea',
    950: '#000000',
  },
}
SCSS
$custom: #c792ea;
$custom-light: #d9b2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#c792ea",
  "rgb": {
    "r": 199,
    "g": 146,
    "b": 234
  },
  "hsl": {
    "h": 276.136,
    "s": 67.692,
    "l": 74.51
  },
  "oklch": {
    "l": 0.74275,
    "c": 0.13483,
    "h": 311.1
  },
  "luminance": 0.3864
}

Semantic roles & 50–950 ramp

primary
#C792EA
secondary
#E3F2D9
accent
#D01660
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #C792EA

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

Preview Lab → · Contrast checker → · Palette generator →

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