#C795F9#C795F9

#C795F9 is a light, vivid violet. Relative luminance 0.405; OKLCH L 75.5% C 0.148 H 306.2°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#C795F9
RGBrgb(199, 149, 249)
HSLhsl(270, 89%, 78%)
HSVhsv(270, 40%, 98%)
CMYKcmyk(20.1%, 40.2%, 0%, 2.4%)
CIE-LABlab(69.81, 37.49, -42.97)
CIE-LCHlch(69.81, 57.02, 311.10°)
OKLaboklab(75.48% 0.0873 -0.1194)
OKLCHoklch(75.48% 0.148 306.2)
XYZxyz(51.3961, 40.4769, 94.7094)
Luminance0.4048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C795F9 #C7F995
analogous
#9595F9 #C795F9 #F995F9
triadic
#C795F9 #F9C795 #95F9C7
tetradic
#C795F9 #F99595 #C7F995 #95F9F9
square
#C795F9 #F99595 #C7F995 #95F9F9
split-complementary
#C795F9 #F9F995 #95F995
monochromatic
#8A21F2 #A85BF6 #C795F9 #E6CFFC #F0E2FD

Accessibility & contrast

On white

2.31
#C795F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.10
#C795F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C795F9
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C795F9#FFFFFF#000000##000000
##C795F91.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA9FD
Deuteranopia (green-blind)
#8AABF6
Tritanopia (blue-blind)
#C0A5BB
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c795f9;
/* rgb */ color: rgb(199, 149, 249);
/* oklch */ color: oklch(75.5% 0.148 306.2);
Tailwind
colors: {
  custom: {
    50: '#d9b5fb',
    500: '#c795f9',
    950: '#000000',
  },
}
SCSS
$custom: #c795f9;
$custom-light: #d9b5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#c795f9",
  "rgb": {
    "r": 199,
    "g": 149,
    "b": 249
  },
  "hsl": {
    "h": 270,
    "s": 89.286,
    "l": 78.039
  },
  "oklch": {
    "l": 0.75482,
    "c": 0.14791,
    "h": 306.2
  },
  "luminance": 0.40477
}

Semantic roles & 50–950 ramp

primary
#C795F9
secondary
#E6F5D6
accent
#E60073
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C795F9

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

Preview Lab → · Contrast checker → · Palette generator →

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