#C795EF#C795EF

#C795EF is a light, vivid violet. Relative luminance 0.399; OKLCH L 75.0% C 0.136 H 308.9°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#C795EF
RGBrgb(199, 149, 239)
HSLhsl(273, 74%, 76%)
HSVhsv(273, 38%, 94%)
CMYKcmyk(16.7%, 37.7%, 0%, 6.3%)
CIE-LABlab(69.38, 35.30, -38.18)
CIE-LCHlch(69.38, 52.00, 312.75°)
OKLaboklab(75.01% 0.0853 -0.1056)
OKLCHoklch(75.01% 0.136 308.9)
XYZxyz(49.8777, 39.8696, 86.7126)
Luminance0.3987 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C795EF #BDEF95
analogous
#9A95EF #C795EF #EF95EA
triadic
#C795EF #EFC795 #95EFC7
tetradic
#C795EF #EF9A95 #BDEF95 #95EAEF
square
#C795EF #EF9A95 #BDEF95 #95EAEF
split-complementary
#C795EF #EAEF95 #95EF9A
monochromatic
#8F2BDF #AB60E7 #C795EF #E3CAF7 #F1E4FB

Accessibility & contrast

On white

2.34
#C795EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.97
#C795EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C795EF
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C795EF#FFFFFF#000000##000000
##C795EF1.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#83A7F2
Deuteranopia (green-blind)
#8EAAEC
Tritanopia (blue-blind)
#C2A2B7
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #c795ef;
/* rgb */ color: rgb(199, 149, 239);
/* oklch */ color: oklch(75.0% 0.136 308.9);
Tailwind
colors: {
  custom: {
    50: '#d9b5f4',
    500: '#c795ef',
    950: '#000000',
  },
}
SCSS
$custom: #c795ef;
$custom-light: #d9b5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#c795ef",
  "rgb": {
    "r": 199,
    "g": 149,
    "b": 239
  },
  "hsl": {
    "h": 273.333,
    "s": 73.77,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75014,
    "c": 0.13577,
    "h": 308.9
  },
  "luminance": 0.39869
}

Semantic roles & 50–950 ramp

primary
#C795EF
secondary
#E4F3D8
accent
#D61068
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C795EF

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

Preview Lab → · Contrast checker → · Palette generator →

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