#C792ED#C792ED

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

Color values

HEX#C792ED
RGBrgb(199, 146, 237)
HSLhsl(275, 72%, 75%)
HSVhsv(275, 38%, 93%)
CMYKcmyk(16%, 38.4%, 0%, 7.1%)
CIE-LABlab(68.62, 36.50, -38.27)
CIE-LCHlch(68.62, 52.89, 313.65°)
OKLaboklab(74.41% 0.0892 -0.1058)
OKLCHoklch(74.41% 0.138 310.1)
XYZxyz(49.1154, 38.8150, 85.0090)
Luminance0.3881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C792ED #B8ED92
analogous
#9992ED #C792ED #ED92E6
triadic
#C792ED #EDC792 #92EDC7
tetradic
#C792ED #ED9992 #B8ED92 #92E6ED
square
#C792ED #ED9992 #B8ED92 #92E6ED
split-complementary
#C792ED #E6ED92 #92ED99
monochromatic
#9129DC #AC5DE4 #C792ED #E2C7F6 #F2E5FB

Accessibility & contrast

On white

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

On black

8.76
#C792ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C792ED
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C792ED#FFFFFF#000000##000000
##C792ED1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c792ed;
/* rgb */ color: rgb(199, 146, 237);
/* oklch */ color: oklch(74.4% 0.138 310.1);
Tailwind
colors: {
  custom: {
    50: '#d9b2f3',
    500: '#c792ed',
    950: '#000000',
  },
}
SCSS
$custom: #c792ed;
$custom-light: #d9b2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#c792ed",
  "rgb": {
    "r": 199,
    "g": 146,
    "b": 237
  },
  "hsl": {
    "h": 274.945,
    "s": 71.654,
    "l": 75.098
  },
  "oklch": {
    "l": 0.74412,
    "c": 0.13839,
    "h": 310.1
  },
  "luminance": 0.38814
}

Semantic roles & 50–950 ramp

primary
#C792ED
secondary
#E3F2D9
accent
#D41263
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C792ED

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

Preview Lab → · Contrast checker → · Palette generator →

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