#C98CEE#C98CEE

#C98CEE is a light, vivid violet. Relative luminance 0.373; OKLCH L 73.7% C 0.150 H 311.8°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#C98CEE
RGBrgb(201, 140, 238)
HSLhsl(277, 74%, 74%)
HSVhsv(277, 41%, 93%)
CMYKcmyk(15.5%, 41.2%, 0%, 6.7%)
CIE-LABlab(67.54, 40.56, -40.49)
CIE-LCHlch(67.54, 57.31, 315.05°)
OKLaboklab(73.66% 0.1002 -0.1121)
OKLCHoklch(73.66% 0.15 311.8)
XYZxyz(48.8954, 37.3476, 85.5054)
Luminance0.3735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C98CEE #B1EE8C
analogous
#988CEE #C98CEE #EE8CE2
triadic
#C98CEE #EEC98C #8CEEC9
tetradic
#C98CEE #EE988C #B1EE8C #8CE2EE
square
#C98CEE #EE988C #B1EE8C #8CE2EE
split-complementary
#C98CEE #E2EE8C #8CEE98
monochromatic
#9721DE #B057E6 #C98CEE #E2C1F6 #F2E4FB

Accessibility & contrast

On white

2.48
#C98CEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.47
#C98CEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C98CEE
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C98CEE#FFFFFF#000000##000000
##C98CEE1.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A1F2
Deuteranopia (green-blind)
#88A6EB
Tritanopia (blue-blind)
#C59AB2
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #c98cee;
/* rgb */ color: rgb(201, 140, 238);
/* oklch */ color: oklch(73.7% 0.150 311.8);
Tailwind
colors: {
  custom: {
    50: '#dbaef4',
    500: '#c98cee',
    950: '#000000',
  },
}
SCSS
$custom: #c98cee;
$custom-light: #dbaef4;
$custom-dark: #000000;
JSON
{
  "hex": "#c98cee",
  "rgb": {
    "r": 201,
    "g": 140,
    "b": 238
  },
  "hsl": {
    "h": 277.347,
    "s": 74.242,
    "l": 74.118
  },
  "oklch": {
    "l": 0.73658,
    "c": 0.15037,
    "h": 311.8
  },
  "luminance": 0.37347
}

Semantic roles & 50–950 ramp

primary
#C98CEE
secondary
#E2F3D8
accent
#D60F5A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #C98CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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