#C98EF8#C98EF8

#C98EF8 is a light, vivid violet. Relative luminance 0.385; OKLCH L 74.5% C 0.159 H 308.6°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#C98EF8
RGBrgb(201, 142, 248)
HSLhsl(273, 88%, 76%)
HSVhsv(273, 43%, 97%)
CMYKcmyk(19%, 42.7%, 0%, 2.7%)
CIE-LABlab(68.42, 41.63, -44.59)
CIE-LCHlch(68.42, 61.01, 313.04°)
OKLaboklab(74.47% 0.0991 -0.124)
OKLCHoklch(74.47% 0.159 308.6)
XYZxyz(50.7005, 38.5414, 93.5571)
Luminance0.3854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C98EF8 #BDF88E
analogous
#948EF8 #C98EF8 #F88EF2
triadic
#C98EF8 #F8C98E #8EF8C9
tetradic
#C98EF8 #F8948E #BDF88E #8EF2F8
square
#C98EF8 #F8948E #BDF88E #8EF2F8
split-complementary
#C98EF8 #F2F88E #8EF894
monochromatic
#921BF1 #AD54F4 #C98EF8 #E5C8FC #F1E2FD

Accessibility & contrast

On white

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

On black

8.71
#C98EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C98EF8
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C98EF8#FFFFFF#000000##000000
##C98EF81.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A4FC
Deuteranopia (green-blind)
#85A8F5
Tritanopia (blue-blind)
#C39FB7
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #c98ef8;
/* rgb */ color: rgb(201, 142, 248);
/* oklch */ color: oklch(74.5% 0.159 308.6);
Tailwind
colors: {
  custom: {
    50: '#dbb0fb',
    500: '#c98ef8',
    950: '#000000',
  },
}
SCSS
$custom: #c98ef8;
$custom-light: #dbb0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#c98ef8",
  "rgb": {
    "r": 201,
    "g": 142,
    "b": 248
  },
  "hsl": {
    "h": 273.396,
    "s": 88.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74466,
    "c": 0.15875,
    "h": 308.6
  },
  "luminance": 0.38541
}

Semantic roles & 50–950 ramp

primary
#C98EF8
secondary
#E4F5D6
accent
#E50166
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151017
muted
#837F85

Preview Lab

Preview with #C98EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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