#C998F2#C998F2

#C998F2 is a light, vivid violet. Relative luminance 0.413; OKLCH L 75.9% C 0.135 H 308.5°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#C998F2
RGBrgb(201, 152, 242)
HSLhsl(273, 78%, 77%)
HSVhsv(273, 37%, 95%)
CMYKcmyk(16.9%, 37.2%, 0%, 5.1%)
CIE-LABlab(70.38, 34.89, -38.25)
CIE-LCHlch(70.38, 51.78, 312.37°)
OKLaboklab(75.86% 0.084 -0.1058)
OKLCHoklch(75.86% 0.135 308.5)
XYZxyz(51.3396, 41.2853, 89.2514)
Luminance0.4128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C998F2 #C1F298
analogous
#9C98F2 #C998F2 #F298EE
triadic
#C998F2 #F2C998 #98F2C9
tetradic
#C998F2 #F29C98 #C1F298 #98EEF2
square
#C998F2 #F29C98 #C1F298 #98EEF2
split-complementary
#C998F2 #EEF298 #98F29C
monochromatic
#902BE4 #AD62EB #C998F2 #E5CEF9 #F1E4FC

Accessibility & contrast

On white

2.27
#C998F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#C998F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C998F2
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C998F2#FFFFFF#000000##000000
##C998F21.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#86AAF5
Deuteranopia (green-blind)
#91ADEF
Tritanopia (blue-blind)
#C4A5BA
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c998f2;
/* rgb */ color: rgb(201, 152, 242);
/* oklch */ color: oklch(75.9% 0.135 308.5);
Tailwind
colors: {
  custom: {
    50: '#dab7f6',
    500: '#c998f2',
    950: '#000000',
  },
}
SCSS
$custom: #c998f2;
$custom-light: #dab7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#c998f2",
  "rgb": {
    "r": 201,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 272.667,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.75857,
    "c": 0.13509,
    "h": 308.5
  },
  "luminance": 0.41285
}

Semantic roles & 50–950 ramp

primary
#C998F2
secondary
#E4F3D8
accent
#DA0C6A
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #C998F2

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

Preview Lab → · Contrast checker → · Palette generator →

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