#C795EC#C795EC

#C795EC is a light, vivid violet. Relative luminance 0.397; OKLCH L 74.9% C 0.132 H 309.9°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#C795EC
RGBrgb(199, 149, 236)
HSLhsl(274, 70%, 75%)
HSVhsv(274, 37%, 93%)
CMYKcmyk(15.7%, 36.9%, 0%, 7.5%)
CIE-LABlab(69.25, 34.65, -36.73)
CIE-LCHlch(69.25, 50.50, 313.33°)
OKLaboklab(74.88% 0.0847 -0.1014)
OKLCHoklch(74.88% 0.132 309.9)
XYZxyz(49.4382, 39.6938, 84.3979)
Luminance0.3969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C795EC #BAEC95
analogous
#9B95EC #C795EC #EC95E5
triadic
#C795EC #ECC795 #95ECC7
tetradic
#C795EC #EC9B95 #BAEC95 #95E5EC
square
#C795EC #EC9B95 #BAEC95 #95E5EC
split-complementary
#C795EC #E5EC95 #95EC9B
monochromatic
#902DD9 #AC61E3 #C795EC #E2C9F5 #F1E5FA

Accessibility & contrast

On white

2.35
#C795EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.94
#C795EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C795EC
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C795EC#FFFFFF#000000##000000
##C795EC1.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A7EF
Deuteranopia (green-blind)
#90AAEA
Tritanopia (blue-blind)
#C3A1B6
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c795ec;
/* rgb */ color: rgb(199, 149, 236);
/* oklch */ color: oklch(74.9% 0.132 309.9);
Tailwind
colors: {
  custom: {
    50: '#d9b5f2',
    500: '#c795ec',
    950: '#000000',
  },
}
SCSS
$custom: #c795ec;
$custom-light: #d9b5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#c795ec",
  "rgb": {
    "r": 199,
    "g": 149,
    "b": 236
  },
  "hsl": {
    "h": 274.483,
    "s": 69.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.74878,
    "c": 0.13215,
    "h": 309.9
  },
  "luminance": 0.39693
}

Semantic roles & 50–950 ramp

primary
#C795EC
secondary
#E4F2D9
accent
#D21465
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C795EC

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

Preview Lab → · Contrast checker → · Palette generator →

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