#C98AF9#C98AF9

#C98AF9 is a light, vivid violet. Relative luminance 0.374; OKLCH L 73.9% C 0.166 H 309.0°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#C98AF9
RGBrgb(201, 138, 249)
HSLhsl(274, 90%, 76%)
HSVhsv(274, 45%, 98%)
CMYKcmyk(19.3%, 44.6%, 0%, 2.4%)
CIE-LABlab(67.60, 44.00, -46.42)
CIE-LCHlch(67.60, 63.96, 313.47°)
OKLaboklab(73.87% 0.1048 -0.1293)
OKLCHoklch(73.87% 0.166 309)
XYZxyz(50.2715, 37.4347, 94.1815)
Luminance0.3743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C98AF9 #BAF98A
analogous
#918AF9 #C98AF9 #F98AF1
triadic
#C98AF9 #F9C98A #8AF9C9
tetradic
#C98AF9 #F9918A #BAF98A #8AF1F9
square
#C98AF9 #F9918A #BAF98A #8AF1F9
split-complementary
#C98AF9 #F1F98A #8AF991
monochromatic
#9316F3 #AE50F6 #C98AF9 #E4C4FC #F2E2FE

Accessibility & contrast

On white

2.47
#C98AF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.49
#C98AF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C98AF9
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C98AF9#FFFFFF#000000##000000
##C98AF91.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A2FD
Deuteranopia (green-blind)
#80A6F6
Tritanopia (blue-blind)
#C39CB6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #c98af9;
/* rgb */ color: rgb(201, 138, 249);
/* oklch */ color: oklch(73.9% 0.166 309.0);
Tailwind
colors: {
  custom: {
    50: '#dbadfb',
    500: '#c98af9',
    950: '#000000',
  },
}
SCSS
$custom: #c98af9;
$custom-light: #dbadfb;
$custom-dark: #000000;
JSON
{
  "hex": "#c98af9",
  "rgb": {
    "r": 201,
    "g": 138,
    "b": 249
  },
  "hsl": {
    "h": 274.054,
    "s": 90.244,
    "l": 75.882
  },
  "oklch": {
    "l": 0.7387,
    "c": 0.1664,
    "h": 309
  },
  "luminance": 0.37434
}

Semantic roles & 50–950 ramp

primary
#C98AF9
secondary
#E3F6D5
accent
#E60063
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #C98AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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