#C98EFE#C98EFE

#C98EFE is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.8% C 0.166 H 307.1°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#C98EFE
RGBrgb(201, 142, 254)
HSLhsl(272, 98%, 78%)
HSVhsv(272, 44%, 100%)
CMYKcmyk(20.9%, 44.1%, 0%, 0.4%)
CIE-LABlab(68.69, 42.95, -47.43)
CIE-LCHlch(68.69, 63.99, 312.16°)
OKLaboklab(74.76% 0.1001 -0.1322)
OKLCHoklch(74.76% 0.166 307.1)
XYZxyz(51.6462, 38.9198, 98.5382)
Luminance0.3892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C98EFE #C3FE8E
analogous
#918EFE #C98EFE #FE8EFB
triadic
#C98EFE #FEC98E #8EFEC9
tetradic
#C98EFE #FE918E #C3FE8E #8EFBFE
square
#C98EFE #FE918E #C3FE8E #8EFBFE
split-complementary
#C98EFE #FBFE8E #8EFE91
monochromatic
#8F15FD #AC51FD #C98EFE #E6CBFF #F1E1FF

Accessibility & contrast

On white

2.39
#C98EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#C98EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C98EFE
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C98EFE#FFFFFF#000000##000000
##C98EFE1.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A5FF
Deuteranopia (green-blind)
#82A8FB
Tritanopia (blue-blind)
#C1A0BA
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #c98efe;
/* rgb */ color: rgb(201, 142, 254);
/* oklch */ color: oklch(74.8% 0.166 307.1);
Tailwind
colors: {
  custom: {
    50: '#dbb0ff',
    500: '#c98efe',
    950: '#000000',
  },
}
SCSS
$custom: #c98efe;
$custom-light: #dbb0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#c98efe",
  "rgb": {
    "r": 201,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 271.607,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.74763,
    "c": 0.16583,
    "h": 307.1
  },
  "luminance": 0.38919
}

Semantic roles & 50–950 ramp

primary
#C98EFE
secondary
#E5F7D4
accent
#E6006D
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151018
muted
#837F86

Preview Lab

Preview with #C98EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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