#C998F4#C998F4

#C998F4 is a light, vivid violet. Relative luminance 0.414; OKLCH L 75.9% C 0.138 H 307.9°. Best body text is #000000 at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#C998F4
RGBrgb(201, 152, 244)
HSLhsl(272, 81%, 78%)
HSVhsv(272, 38%, 96%)
CMYKcmyk(17.6%, 37.7%, 0%, 4.3%)
CIE-LABlab(70.46, 35.33, -39.21)
CIE-LCHlch(70.46, 52.78, 312.02°)
OKLaboklab(75.95% 0.0845 -0.1085)
OKLCHoklch(75.95% 0.138 307.9)
XYZxyz(51.6417, 41.4061, 90.8421)
Luminance0.4141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C998F4 #C3F498
analogous
#9B98F4 #C998F4 #F498F1
triadic
#C998F4 #F4C998 #98F4C9
tetradic
#C998F4 #F49B98 #C3F498 #98F1F4
square
#C998F4 #F49B98 #C3F498 #98F1F4
split-complementary
#C998F4 #F1F498 #98F49B
monochromatic
#8F29E8 #AC61EE #C998F4 #E6CFFA #F1E3FC

Accessibility & contrast

On white

2.26
#C998F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.28
#C998F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C998F4
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C998F4#FFFFFF#000000##000000
##C998F41.002.269.289.28
#FFFFFF2.261.0021.0021.00
#0000009.2821.001.001.00
##0000009.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#85AAF7
Deuteranopia (green-blind)
#90ADF1
Tritanopia (blue-blind)
#C3A6BB
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #c998f4;
/* rgb */ color: rgb(201, 152, 244);
/* oklch */ color: oklch(75.9% 0.138 307.9);
Tailwind
colors: {
  custom: {
    50: '#dbb7f8',
    500: '#c998f4',
    950: '#000000',
  },
}
SCSS
$custom: #c998f4;
$custom-light: #dbb7f8;
$custom-dark: #000000;
JSON
{
  "hex": "#c998f4",
  "rgb": {
    "r": 201,
    "g": 152,
    "b": 244
  },
  "hsl": {
    "h": 271.957,
    "s": 80.702,
    "l": 77.647
  },
  "oklch": {
    "l": 0.75949,
    "c": 0.13752,
    "h": 307.9
  },
  "luminance": 0.41406
}

Semantic roles & 50–950 ramp

primary
#C998F4
secondary
#E5F4D7
accent
#DD086C
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #C998F4

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

Preview Lab → · Contrast checker → · Palette generator →

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