#C792EE#C792EE

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

Color values

HEX#C792EE
RGBrgb(199, 146, 238)
HSLhsl(275, 73%, 75%)
HSVhsv(275, 39%, 93%)
CMYKcmyk(16.4%, 38.7%, 0%, 6.7%)
CIE-LABlab(68.66, 36.72, -38.75)
CIE-LCHlch(68.66, 53.39, 313.46°)
OKLaboklab(74.46% 0.0894 -0.1072)
OKLCHoklch(74.46% 0.14 309.8)
XYZxyz(49.2619, 38.8736, 85.7806)
Luminance0.3887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C792EE #B9EE92
analogous
#9992EE #C792EE #EE92E7
triadic
#C792EE #EEC792 #92EEC7
tetradic
#C792EE #EE9992 #B9EE92 #92E7EE
square
#C792EE #EE9992 #B9EE92 #92E7EE
split-complementary
#C792EE #E7EE92 #92EE99
monochromatic
#9128DD #AC5DE6 #C792EE #E2C7F6 #F1E5FB

Accessibility & contrast

On white

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

On black

8.77
#C792EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C792EE
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C792EE#FFFFFF#000000##000000
##C792EE1.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#80A5F1
Deuteranopia (green-blind)
#8CA8EB
Tritanopia (blue-blind)
#C29FB5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c792ee;
/* rgb */ color: rgb(199, 146, 238);
/* oklch */ color: oklch(74.5% 0.140 309.8);
Tailwind
colors: {
  custom: {
    50: '#d9b2f4',
    500: '#c792ee',
    950: '#000000',
  },
}
SCSS
$custom: #c792ee;
$custom-light: #d9b2f4;
$custom-dark: #000000;
JSON
{
  "hex": "#c792ee",
  "rgb": {
    "r": 199,
    "g": 146,
    "b": 238
  },
  "hsl": {
    "h": 274.565,
    "s": 73.016,
    "l": 75.294
  },
  "oklch": {
    "l": 0.74458,
    "c": 0.13959,
    "h": 309.8
  },
  "luminance": 0.38873
}

Semantic roles & 50–950 ramp

primary
#C792EE
secondary
#E4F3D8
accent
#D51064
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C792EE

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

Preview Lab → · Contrast checker → · Palette generator →

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