#C998F9#C998F9

#C998F9 is a light, vivid violet. Relative luminance 0.417; OKLCH L 76.2% C 0.144 H 306.5°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#C998F9
RGBrgb(201, 152, 249)
HSLhsl(270, 89%, 79%)
HSVhsv(270, 39%, 98%)
CMYKcmyk(19.3%, 39%, 0%, 2.4%)
CIE-LABlab(70.67, 36.42, -41.60)
CIE-LCHlch(70.67, 55.29, 311.20°)
OKLaboklab(76.18% 0.0855 -0.1154)
OKLCHoklch(76.18% 0.144 306.5)
XYZxyz(52.4111, 41.7139, 94.8947)
Luminance0.4171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C998F9 #C8F998
analogous
#9898F9 #C998F9 #F998F9
triadic
#C998F9 #F9C998 #98F9C9
tetradic
#C998F9 #F99898 #C8F998 #98F9F9
square
#C998F9 #F99898 #C8F998 #98F9F9
split-complementary
#C998F9 #F9F998 #98F998
monochromatic
#8C24F2 #AB5EF6 #C998F9 #E7D2FC #F0E2FD

Accessibility & contrast

On white

2.25
#C998F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#C998F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C998F9
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C998F9#FFFFFF#000000##000000
##C998F91.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ABFD
Deuteranopia (green-blind)
#8EADF6
Tritanopia (blue-blind)
#C2A7BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #c998f9;
/* rgb */ color: rgb(201, 152, 249);
/* oklch */ color: oklch(76.2% 0.144 306.5);
Tailwind
colors: {
  custom: {
    50: '#dbb7fb',
    500: '#c998f9',
    950: '#000000',
  },
}
SCSS
$custom: #c998f9;
$custom-light: #dbb7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#c998f9",
  "rgb": {
    "r": 201,
    "g": 152,
    "b": 249
  },
  "hsl": {
    "h": 270.309,
    "s": 88.991,
    "l": 78.627
  },
  "oklch": {
    "l": 0.7618,
    "c": 0.14361,
    "h": 306.5
  },
  "luminance": 0.41714
}

Semantic roles & 50–950 ramp

primary
#C998F9
secondary
#E5F5D6
accent
#E60072
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C998F9

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

Preview Lab → · Contrast checker → · Palette generator →

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