#C795F7#C795F7

#C795F7 is a light, vivid violet. Relative luminance 0.404; OKLCH L 75.4% C 0.145 H 306.7°. Best body text is #000000 at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#C795F7
RGBrgb(199, 149, 247)
HSLhsl(271, 86%, 78%)
HSVhsv(271, 40%, 97%)
CMYKcmyk(19.4%, 39.7%, 0%, 3.1%)
CIE-LABlab(69.72, 37.05, -42.02)
CIE-LCHlch(69.72, 56.02, 311.40°)
OKLaboklab(75.39% 0.0869 -0.1166)
OKLCHoklch(75.39% 0.145 306.7)
XYZxyz(51.0858, 40.3528, 93.0753)
Luminance0.4035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C795F7 #C5F795
analogous
#9695F7 #C795F7 #F795F6
triadic
#C795F7 #F7C795 #95F7C7
tetradic
#C795F7 #F79695 #C5F795 #95F6F7
square
#C795F7 #F79695 #C5F795 #95F6F7
split-complementary
#C795F7 #F6F795 #95F796
monochromatic
#8B23EE #A95CF3 #C795F7 #E5CEFB #F0E3FD

Accessibility & contrast

On white

2.32
#C795F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.07
#C795F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C795F7
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C795F7#FFFFFF#000000##000000
##C795F71.002.329.079.07
#FFFFFF2.321.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA8FB
Deuteranopia (green-blind)
#8BABF4
Tritanopia (blue-blind)
#C0A4BA
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c795f7;
/* rgb */ color: rgb(199, 149, 247);
/* oklch */ color: oklch(75.4% 0.145 306.7);
Tailwind
colors: {
  custom: {
    50: '#d9b5fa',
    500: '#c795f7',
    950: '#000000',
  },
}
SCSS
$custom: #c795f7;
$custom-light: #d9b5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#c795f7",
  "rgb": {
    "r": 199,
    "g": 149,
    "b": 247
  },
  "hsl": {
    "h": 270.612,
    "s": 85.965,
    "l": 77.647
  },
  "oklch": {
    "l": 0.75387,
    "c": 0.14547,
    "h": 306.7
  },
  "luminance": 0.40352
}

Semantic roles & 50–950 ramp

primary
#C795F7
secondary
#E5F5D6
accent
#E20370
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C795F7

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

Preview Lab → · Contrast checker → · Palette generator →

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