#C98CEC#C98CEC

#C98CEC is a light, vivid violet. Relative luminance 0.372; OKLCH L 73.6% C 0.148 H 312.4°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#C98CEC
RGBrgb(201, 140, 236)
HSLhsl(278, 72%, 74%)
HSVhsv(278, 41%, 93%)
CMYKcmyk(14.8%, 40.7%, 0%, 7.5%)
CIE-LABlab(67.45, 40.14, -39.53)
CIE-LCHlch(67.45, 56.33, 315.44°)
OKLaboklab(73.56% 0.0998 -0.1094)
OKLCHoklch(73.56% 0.148 312.4)
XYZxyz(48.6032, 37.2307, 83.9665)
Luminance0.3723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C98CEC #AFEC8C
analogous
#998CEC #C98CEC #EC8CDF
triadic
#C98CEC #ECC98C #8CECC9
tetradic
#C98CEC #EC998C #AFEC8C #8CDFEC
square
#C98CEC #EC998C #AFEC8C #8CDFEC
split-complementary
#C98CEC #DFEC8C #8CEC99
monochromatic
#9724DA #B057E3 #C98CEC #E2C1F5 #F3E5FB

Accessibility & contrast

On white

2.49
#C98CEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#C98CEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C98CEC
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C98CEC#FFFFFF#000000##000000
##C98CEC1.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA1F0
Deuteranopia (green-blind)
#89A6E9
Tritanopia (blue-blind)
#C69AB1
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #c98cec;
/* rgb */ color: rgb(201, 140, 236);
/* oklch */ color: oklch(73.6% 0.148 312.4);
Tailwind
colors: {
  custom: {
    50: '#dbaef2',
    500: '#c98cec',
    950: '#000000',
  },
}
SCSS
$custom: #c98cec;
$custom-light: #dbaef2;
$custom-dark: #000000;
JSON
{
  "hex": "#c98cec",
  "rgb": {
    "r": 201,
    "g": 140,
    "b": 236
  },
  "hsl": {
    "h": 278.125,
    "s": 71.642,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73564,
    "c": 0.14807,
    "h": 312.4
  },
  "luminance": 0.3723
}

Semantic roles & 50–950 ramp

primary
#C98CEC
secondary
#E2F2D9
accent
#D41258
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C98CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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