#C998F1#C998F1

#C998F1 is a light, vivid violet. Relative luminance 0.412; OKLCH L 75.8% C 0.134 H 308.8°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#C998F1
RGBrgb(201, 152, 241)
HSLhsl(273, 76%, 77%)
HSVhsv(273, 37%, 95%)
CMYKcmyk(16.6%, 36.9%, 0%, 5.5%)
CIE-LABlab(70.33, 34.68, -37.77)
CIE-LCHlch(70.33, 51.28, 312.55°)
OKLaboklab(75.81% 0.0838 -0.1044)
OKLCHoklch(75.81% 0.134 308.8)
XYZxyz(51.1899, 41.2254, 88.4626)
Luminance0.4123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C998F1 #C0F198
analogous
#9D98F1 #C998F1 #F198EC
triadic
#C998F1 #F1C998 #98F1C9
tetradic
#C998F1 #F19D98 #C0F198 #98ECF1
square
#C998F1 #F19D98 #C0F198 #98ECF1
split-complementary
#C998F1 #ECF198 #98F19D
monochromatic
#912CE2 #AD62EA #C998F1 #E5CEF8 #F1E4FB

Accessibility & contrast

On white

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

On black

9.24
#C998F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C998F1
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C998F1#FFFFFF#000000##000000
##C998F11.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#86AAF4
Deuteranopia (green-blind)
#91ADEE
Tritanopia (blue-blind)
#C4A5B9
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c998f1;
/* rgb */ color: rgb(201, 152, 241);
/* oklch */ color: oklch(75.8% 0.134 308.8);
Tailwind
colors: {
  custom: {
    50: '#dab7f6',
    500: '#c998f1',
    950: '#000000',
  },
}
SCSS
$custom: #c998f1;
$custom-light: #dab7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#c998f1",
  "rgb": {
    "r": 201,
    "g": 152,
    "b": 241
  },
  "hsl": {
    "h": 273.034,
    "s": 76.068,
    "l": 77.059
  },
  "oklch": {
    "l": 0.75812,
    "c": 0.13388,
    "h": 308.8
  },
  "luminance": 0.41225
}

Semantic roles & 50–950 ramp

primary
#C998F1
secondary
#E4F3D8
accent
#D80D68
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #C998F1

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

Preview Lab → · Contrast checker → · Palette generator →

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