#C794EF#C794EF

#C794EF is a light, vivid violet. Relative luminance 0.396; OKLCH L 74.8% C 0.137 H 309.1°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#C794EF
RGBrgb(199, 148, 239)
HSLhsl(274, 74%, 76%)
HSVhsv(274, 38%, 94%)
CMYKcmyk(16.7%, 38.1%, 0%, 6.3%)
CIE-LABlab(69.15, 35.84, -38.53)
CIE-LCHlch(69.15, 52.63, 312.93°)
OKLaboklab(74.84% 0.0868 -0.1066)
OKLCHoklch(74.84% 0.137 309.1)
XYZxyz(49.7202, 39.5545, 86.6601)
Luminance0.3955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C794EF #BCEF94
analogous
#9994EF #C794EF #EF94EA
triadic
#C794EF #EFC794 #94EFC7
tetradic
#C794EF #EF9994 #BCEF94 #94EAEF
square
#C794EF #EF9994 #BCEF94 #94EAEF
split-complementary
#C794EF #EAEF94 #94EF99
monochromatic
#8F2ADF #AB5FE7 #C794EF #E3C9F7 #F1E4FB

Accessibility & contrast

On white

2.36
#C794EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#C794EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C794EF
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C794EF#FFFFFF#000000##000000
##C794EF1.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#82A7F2
Deuteranopia (green-blind)
#8DAAEC
Tritanopia (blue-blind)
#C2A1B6
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c794ef;
/* rgb */ color: rgb(199, 148, 239);
/* oklch */ color: oklch(74.8% 0.137 309.1);
Tailwind
colors: {
  custom: {
    50: '#d9b4f4',
    500: '#c794ef',
    950: '#000000',
  },
}
SCSS
$custom: #c794ef;
$custom-light: #d9b4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#c794ef",
  "rgb": {
    "r": 199,
    "g": 148,
    "b": 239
  },
  "hsl": {
    "h": 273.626,
    "s": 73.984,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74844,
    "c": 0.13744,
    "h": 309.1
  },
  "luminance": 0.39554
}

Semantic roles & 50–950 ramp

primary
#C794EF
secondary
#E4F3D8
accent
#D60F67
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C794EF

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

Preview Lab → · Contrast checker → · Palette generator →

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