#C98DF2#C98DF2

#C98DF2 is a light, vivid violet. Relative luminance 0.379; OKLCH L 74.0% C 0.153 H 310.5°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#C98DF2
RGBrgb(201, 141, 242)
HSLhsl(276, 80%, 75%)
HSVhsv(276, 42%, 95%)
CMYKcmyk(16.9%, 41.7%, 0%, 5.1%)
CIE-LABlab(67.93, 40.87, -42.07)
CIE-LCHlch(67.93, 58.66, 314.17°)
OKLaboklab(74.01% 0.0995 -0.1167)
OKLCHoklch(74.01% 0.153 310.5)
XYZxyz(49.6364, 37.8788, 88.6837)
Luminance0.3788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C98DF2 #B6F28D
analogous
#978DF2 #C98DF2 #F28DE8
triadic
#C98DF2 #F2C98D #8DF2C9
tetradic
#C98DF2 #F2978D #B6F28D #8DE8F2
square
#C98DF2 #F2978D #B6F28D #8DE8F2
split-complementary
#C98DF2 #E8F28D #8DF297
monochromatic
#951FE5 #AF56EC #C98DF2 #E3C4F8 #F2E4FC

Accessibility & contrast

On white

2.45
#C98DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#C98DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C98DF2
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C98DF2#FFFFFF#000000##000000
##C98DF21.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A3F6
Deuteranopia (green-blind)
#87A7EF
Tritanopia (blue-blind)
#C49CB4
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #c98df2;
/* rgb */ color: rgb(201, 141, 242);
/* oklch */ color: oklch(74.0% 0.153 310.5);
Tailwind
colors: {
  custom: {
    50: '#dbaff6',
    500: '#c98df2',
    950: '#000000',
  },
}
SCSS
$custom: #c98df2;
$custom-light: #dbaff6;
$custom-dark: #000000;
JSON
{
  "hex": "#c98df2",
  "rgb": {
    "r": 201,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 275.644,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.74013,
    "c": 0.15336,
    "h": 310.5
  },
  "luminance": 0.37878
}

Semantic roles & 50–950 ramp

primary
#C98DF2
secondary
#E3F4D7
accent
#DC0A5F
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151017
muted
#837F85

Preview Lab

Preview with #C98DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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