#CF98F1#CF98F1

#CF98F1 is a light, vivid violet. Relative luminance 0.421; OKLCH L 76.4% C 0.136 H 311.8°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#CF98F1
RGBrgb(207, 152, 241)
HSLhsl(277, 76%, 77%)
HSVhsv(277, 37%, 95%)
CMYKcmyk(14.1%, 36.9%, 0%, 5.5%)
CIE-LABlab(70.92, 36.45, -36.81)
CIE-LCHlch(70.92, 51.81, 314.72°)
OKLaboklab(76.39% 0.0907 -0.1015)
OKLCHoklch(76.39% 0.136 311.8)
XYZxyz(52.8348, 42.0736, 88.5397)
Luminance0.4207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98F1 #BAF198
analogous
#A398F1 #CF98F1 #F198E6
triadic
#CF98F1 #F1CF98 #98F1CF
tetradic
#CF98F1 #F1A398 #BAF198 #98E6F1
square
#CF98F1 #F1A398 #BAF198 #98E6F1
split-complementary
#CF98F1 #E6F198 #98F1A3
monochromatic
#9D2CE2 #B662EA #CF98F1 #E8CEF8 #F2E4FB

Accessibility & contrast

On white

2.23
#CF98F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#CF98F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98F1
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98F1#FFFFFF#000000##000000
##CF98F11.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#88ABF4
Deuteranopia (green-blind)
#95AFEE
Tritanopia (blue-blind)
#CCA4B9
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cf98f1;
/* rgb */ color: rgb(207, 152, 241);
/* oklch */ color: oklch(76.4% 0.136 311.8);
Tailwind
colors: {
  custom: {
    50: '#dfb7f6',
    500: '#cf98f1',
    950: '#000000',
  },
}
SCSS
$custom: #cf98f1;
$custom-light: #dfb7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98f1",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 241
  },
  "hsl": {
    "h": 277.079,
    "s": 76.068,
    "l": 77.059
  },
  "oklch": {
    "l": 0.76393,
    "c": 0.13616,
    "h": 311.8
  },
  "luminance": 0.42073
}

Semantic roles & 50–950 ramp

primary
#CF98F1
secondary
#E2F3D8
accent
#D80D5B
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CF98F1

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

Preview Lab → · Contrast checker → · Palette generator →

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