#CF98E2#CF98E2

#CF98E2 is a light, moderate purple. Relative luminance 0.412; OKLCH L 75.7% C 0.119 H 317.2°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#CF98E2
RGBrgb(207, 152, 226)
HSLhsl(285, 56%, 74%)
HSVhsv(285, 33%, 89%)
CMYKcmyk(8.4%, 32.7%, 0%, 11.4%)
CIE-LABlab(70.33, 33.37, -29.52)
CIE-LCHlch(70.33, 44.55, 318.50°)
OKLaboklab(75.74% 0.0872 -0.0807)
OKLCHoklch(75.74% 0.119 317.2)
XYZxyz(50.6858, 41.2140, 77.2218)
Luminance0.4121 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98E2 #ABE298
analogous
#AA98E2 #CF98E2 #E298D0
triadic
#CF98E2 #E2CF98 #98E2CF
tetradic
#CF98E2 #E2AA98 #ABE298 #98D0E2
square
#CF98E2 #E2AA98 #ABE298 #98D0E2
split-complementary
#CF98E2 #D0E298 #98E2AA
monochromatic
#A238C7 #B968D5 #CF98E2 #E5C8EF #F4E7F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CF98E2#FFFFFF#000000##000000
##CF98E21.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)
#8EA8E5
Deuteranopia (green-blind)
#9BAEE0
Tritanopia (blue-blind)
#CFA1B3
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cf98e2;
/* rgb */ color: rgb(207, 152, 226);
/* oklch */ color: oklch(75.7% 0.119 317.2);
Tailwind
colors: {
  custom: {
    50: '#deb7eb',
    500: '#cf98e2',
    950: '#000000',
  },
}
SCSS
$custom: #cf98e2;
$custom-light: #deb7eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98e2",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 226
  },
  "hsl": {
    "h": 284.595,
    "s": 56.061,
    "l": 74.118
  },
  "oklch": {
    "l": 0.75744,
    "c": 0.11885,
    "h": 317.2
  },
  "luminance": 0.41213
}

Semantic roles & 50–950 ramp

primary
#CF98E2
secondary
#E1F0DB
accent
#C4224B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CF98E2

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

Preview Lab → · Contrast checker → · Palette generator →

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