#C794F8#C794F8

#C794F8 is a light, vivid violet. Relative luminance 0.401; OKLCH L 75.3% C 0.148 H 306.6°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#C794F8
RGBrgb(199, 148, 248)
HSLhsl(271, 88%, 78%)
HSVhsv(271, 40%, 97%)
CMYKcmyk(19.8%, 40.3%, 0%, 2.7%)
CIE-LABlab(69.54, 37.81, -42.84)
CIE-LCHlch(69.54, 57.14, 311.43°)
OKLaboklab(75.27% 0.0885 -0.119)
OKLCHoklch(75.27% 0.148 306.6)
XYZxyz(51.0830, 40.0996, 93.8376)
Luminance0.4010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C794F8 #C5F894
analogous
#9594F8 #C794F8 #F894F7
triadic
#C794F8 #F8C794 #94F8C7
tetradic
#C794F8 #F89594 #C5F894 #94F7F8
square
#C794F8 #F89594 #C5F894 #94F7F8
split-complementary
#C794F8 #F7F894 #94F895
monochromatic
#8B21F0 #A95BF4 #C794F8 #E5CDFC #F0E2FD

Accessibility & contrast

On white

2.33
#C794F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#C794F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C794F8
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C794F8#FFFFFF#000000##000000
##C794F81.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA8FC
Deuteranopia (green-blind)
#89AAF5
Tritanopia (blue-blind)
#C0A4BA
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c794f8;
/* rgb */ color: rgb(199, 148, 248);
/* oklch */ color: oklch(75.3% 0.148 306.6);
Tailwind
colors: {
  custom: {
    50: '#d9b4fb',
    500: '#c794f8',
    950: '#000000',
  },
}
SCSS
$custom: #c794f8;
$custom-light: #d9b4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#c794f8",
  "rgb": {
    "r": 199,
    "g": 148,
    "b": 248
  },
  "hsl": {
    "h": 270.6,
    "s": 87.719,
    "l": 77.647
  },
  "oklch": {
    "l": 0.75266,
    "c": 0.14832,
    "h": 306.6
  },
  "luminance": 0.40099
}

Semantic roles & 50–950 ramp

primary
#C794F8
secondary
#E5F5D6
accent
#E40170
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C794F8

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

Preview Lab → · Contrast checker → · Palette generator →

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