#CF98F2#CF98F2

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

Color values

HEX#CF98F2
RGBrgb(207, 152, 242)
HSLhsl(277, 78%, 77%)
HSVhsv(277, 37%, 95%)
CMYKcmyk(14.5%, 37.2%, 0%, 5.1%)
CIE-LABlab(70.96, 36.66, -37.29)
CIE-LCHlch(70.96, 52.30, 314.51°)
OKLaboklab(76.44% 0.0909 -0.1029)
OKLCHoklch(76.44% 0.137 311.5)
XYZxyz(52.9846, 42.1335, 89.3286)
Luminance0.4213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98F2 #BBF298
analogous
#A298F2 #CF98F2 #F298E8
triadic
#CF98F2 #F2CF98 #98F2CF
tetradic
#CF98F2 #F2A298 #BBF298 #98E8F2
square
#CF98F2 #F2A298 #BBF298 #98E8F2
split-complementary
#CF98F2 #E8F298 #98F2A2
monochromatic
#9C2BE4 #B662EB #CF98F2 #E8CEF9 #F2E4FC

Accessibility & contrast

On white

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

On black

9.43
#CF98F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98F2
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98F2#FFFFFF#000000##000000
##CF98F21.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#87ABF5
Deuteranopia (green-blind)
#94AFEF
Tritanopia (blue-blind)
#CCA5BA
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cf98f2;
/* rgb */ color: rgb(207, 152, 242);
/* oklch */ color: oklch(76.4% 0.137 311.5);
Tailwind
colors: {
  custom: {
    50: '#dfb7f6',
    500: '#cf98f2',
    950: '#000000',
  },
}
SCSS
$custom: #cf98f2;
$custom-light: #dfb7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98f2",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 276.667,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.76437,
    "c": 0.13733,
    "h": 311.5
  },
  "luminance": 0.42133
}

Semantic roles & 50–950 ramp

primary
#CF98F2
secondary
#E2F3D8
accent
#DA0C5C
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CF98F2

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

Preview Lab → · Contrast checker → · Palette generator →

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