#C798EF#C798EF

#C798EF is a light, vivid violet. Relative luminance 0.408; OKLCH L 75.5% C 0.131 H 308.3°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#C798EF
RGBrgb(199, 152, 239)
HSLhsl(272, 73%, 77%)
HSVhsv(272, 36%, 94%)
CMYKcmyk(16.7%, 36.4%, 0%, 6.3%)
CIE-LABlab(70.06, 33.65, -37.12)
CIE-LCHlch(70.06, 50.11, 312.19°)
OKLaboklab(75.53% 0.0811 -0.1026)
OKLCHoklch(75.53% 0.131 308.3)
XYZxyz(50.3585, 40.8311, 86.8729)
Luminance0.4083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798EF #C0EF98
analogous
#9C98EF #C798EF #EF98EB
triadic
#C798EF #EFC798 #98EFC7
tetradic
#C798EF #EF9C98 #C0EF98 #98EBEF
square
#C798EF #EF9C98 #C0EF98 #98EBEF
split-complementary
#C798EF #EBEF98 #98EF9C
monochromatic
#8D2EDF #AA63E7 #C798EF #E4CDF7 #F1E5FB

Accessibility & contrast

On white

2.29
#C798EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#C798EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C798EF
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C798EF#FFFFFF#000000##000000
##C798EF1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A9F2
Deuteranopia (green-blind)
#91ACED
Tritanopia (blue-blind)
#C2A5B8
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #c798ef;
/* rgb */ color: rgb(199, 152, 239);
/* oklch */ color: oklch(75.5% 0.131 308.3);
Tailwind
colors: {
  custom: {
    50: '#d9b7f4',
    500: '#c798ef',
    950: '#000000',
  },
}
SCSS
$custom: #c798ef;
$custom-light: #d9b7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#c798ef",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 239
  },
  "hsl": {
    "h": 272.414,
    "s": 73.109,
    "l": 76.667
  },
  "oklch": {
    "l": 0.7553,
    "c": 0.13075,
    "h": 308.3
  },
  "luminance": 0.40831
}

Semantic roles & 50–950 ramp

primary
#C798EF
secondary
#E4F3D8
accent
#D5106B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #C798EF

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

Preview Lab → · Contrast checker → · Palette generator →

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