#C98CFB#C98CFB

#C98CFB is a light, vivid violet. Relative luminance 0.381; OKLCH L 74.3% C 0.166 H 308.2°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#C98CFB
RGBrgb(201, 140, 251)
HSLhsl(273, 93%, 77%)
HSVhsv(273, 44%, 98%)
CMYKcmyk(19.9%, 44.2%, 0%, 1.6%)
CIE-LABlab(68.12, 43.37, -46.69)
CIE-LCHlch(68.12, 63.73, 312.89°)
OKLaboklab(74.29% 0.1024 -0.1301)
OKLCHoklch(74.29% 0.166 308.2)
XYZxyz(50.8747, 38.1393, 95.9296)
Luminance0.3814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C98CFB #BEFB8C
analogous
#928CFB #C98CFB #FB8CF5
triadic
#C98CFB #FBC98C #8CFBC9
tetradic
#C98CFB #FB928C #BEFB8C #8CF5FB
square
#C98CFB #FB928C #BEFB8C #8CF5FB
split-complementary
#C98CFB #F5FB8C #8CFB92
monochromatic
#9116F7 #AD51F9 #C98CFB #E5C7FD #F1E1FE

Accessibility & contrast

On white

2.43
#C98CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#C98CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C98CFB
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C98CFB#FFFFFF#000000##000000
##C98CFB1.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A4FF
Deuteranopia (green-blind)
#81A7F8
Tritanopia (blue-blind)
#C29EB8
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #c98cfb;
/* rgb */ color: rgb(201, 140, 251);
/* oklch */ color: oklch(74.3% 0.166 308.2);
Tailwind
colors: {
  custom: {
    50: '#dbaffd',
    500: '#c98cfb',
    950: '#000000',
  },
}
SCSS
$custom: #c98cfb;
$custom-light: #dbaffd;
$custom-dark: #000000;
JSON
{
  "hex": "#c98cfb",
  "rgb": {
    "r": 201,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 272.973,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.7429,
    "c": 0.1655,
    "h": 308.2
  },
  "luminance": 0.38139
}

Semantic roles & 50–950 ramp

primary
#C98CFB
secondary
#E4F6D5
accent
#E60067
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C98CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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