#C98DFE#C98DFE

#C98DFE is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.6% C 0.167 H 307.3°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#C98DFE
RGBrgb(201, 141, 254)
HSLhsl(272, 98%, 77%)
HSVhsv(272, 44%, 100%)
CMYKcmyk(20.9%, 44.5%, 0%, 0.4%)
CIE-LABlab(68.48, 43.49, -47.77)
CIE-LCHlch(68.48, 64.60, 312.32°)
OKLaboklab(74.6% 0.1014 -0.1332)
OKLCHoklch(74.6% 0.167 307.3)
XYZxyz(51.4981, 38.6235, 98.4888)
Luminance0.3862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C98DFE #C2FE8D
analogous
#908DFE #C98DFE #FE8DFB
triadic
#C98DFE #FEC98D #8DFEC9
tetradic
#C98DFE #FE908D #C2FE8D #8DFBFE
square
#C98DFE #FE908D #C2FE8D #8DFBFE
split-complementary
#C98DFE #FBFE8D #8DFE90
monochromatic
#9014FD #AC50FD #C98DFE #E6CAFF #F1E1FF

Accessibility & contrast

On white

2.41
#C98DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#C98DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C98DFE
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C98DFE#FFFFFF#000000##000000
##C98DFE1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A5FF
Deuteranopia (green-blind)
#81A8FB
Tritanopia (blue-blind)
#C19FBA
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c98dfe;
/* rgb */ color: rgb(201, 141, 254);
/* oklch */ color: oklch(74.6% 0.167 307.3);
Tailwind
colors: {
  custom: {
    50: '#dbafff',
    500: '#c98dfe',
    950: '#000000',
  },
}
SCSS
$custom: #c98dfe;
$custom-light: #dbafff;
$custom-dark: #000000;
JSON
{
  "hex": "#c98dfe",
  "rgb": {
    "r": 201,
    "g": 141,
    "b": 254
  },
  "hsl": {
    "h": 271.858,
    "s": 98.261,
    "l": 77.451
  },
  "oklch": {
    "l": 0.74601,
    "c": 0.16743,
    "h": 307.3
  },
  "luminance": 0.38623
}

Semantic roles & 50–950 ramp

primary
#C98DFE
secondary
#E4F7D4
accent
#E6006C
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151018
muted
#837F86

Preview Lab

Preview with #C98DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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