#C798E2#C798E2

#C798E2 is a light, moderate violet. Relative luminance 0.401; OKLCH L 75.0% C 0.115 H 312.7°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#C798E2
RGBrgb(199, 152, 226)
HSLhsl(278, 56%, 74%)
HSVhsv(278, 33%, 89%)
CMYKcmyk(11.9%, 32.7%, 0%, 11.4%)
CIE-LABlab(69.53, 30.89, -30.81)
CIE-LCHlch(69.53, 43.62, 315.08°)
OKLaboklab(74.96% 0.078 -0.0845)
OKLCHoklch(74.96% 0.115 312.7)
XYZxyz(48.5066, 40.0903, 77.1197)
Luminance0.4009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C798E2 #B3E298
analogous
#A298E2 #C798E2 #E298D8
triadic
#C798E2 #E2C798 #98E2C7
tetradic
#C798E2 #E2A298 #B3E298 #98D8E2
square
#C798E2 #E2A298 #B3E298 #98D8E2
split-complementary
#C798E2 #D8E298 #98E2A2
monochromatic
#9338C7 #AD68D5 #C798E2 #E1C8EF #F2E7F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C798E2#FFFFFF#000000##000000
##C798E21.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)
#8CA7E5
Deuteranopia (green-blind)
#96ABE0
Tritanopia (blue-blind)
#C5A2B3
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #c798e2;
/* rgb */ color: rgb(199, 152, 226);
/* oklch */ color: oklch(75.0% 0.115 312.7);
Tailwind
colors: {
  custom: {
    50: '#d9b7eb',
    500: '#c798e2',
    950: '#000000',
  },
}
SCSS
$custom: #c798e2;
$custom-light: #d9b7eb;
$custom-dark: #000000;
JSON
{
  "hex": "#c798e2",
  "rgb": {
    "r": 199,
    "g": 152,
    "b": 226
  },
  "hsl": {
    "h": 278.108,
    "s": 56.061,
    "l": 74.118
  },
  "oklch": {
    "l": 0.7496,
    "c": 0.11505,
    "h": 312.7
  },
  "luminance": 0.4009
}

Semantic roles & 50–950 ramp

primary
#C798E2
secondary
#E3F0DB
accent
#C4225D
background
#FDFBFE
surface
#FAF6FD
border
#D3D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #C798E2

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

Preview Lab → · Contrast checker → · Palette generator →

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