#CF98F8#CF98F8

#CF98F8 is a light, vivid violet. Relative luminance 0.425; OKLCH L 76.7% C 0.144 H 309.7°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#CF98F8
RGBrgb(207, 152, 248)
HSLhsl(274, 87%, 78%)
HSVhsv(274, 39%, 97%)
CMYKcmyk(16.5%, 38.7%, 0%, 2.7%)
CIE-LABlab(71.21, 37.94, -40.17)
CIE-LCHlch(71.21, 55.25, 313.36°)
OKLaboklab(76.71% 0.0922 -0.1112)
OKLCHoklch(76.71% 0.144 309.7)
XYZxyz(53.9005, 42.4999, 94.1525)
Luminance0.4250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98F8 #C1F898
analogous
#9F98F8 #CF98F8 #F898F1
triadic
#CF98F8 #F8CF98 #98F8CF
tetradic
#CF98F8 #F89F98 #C1F898 #98F1F8
square
#CF98F8 #F89F98 #C1F898 #98F1F8
split-complementary
#CF98F8 #F1F898 #98F89F
monochromatic
#9A25F0 #B45FF4 #CF98F8 #EAD1FC #F2E2FD

Accessibility & contrast

On white

2.21
#CF98F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.50
#CF98F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98F8
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98F8#FFFFFF#000000##000000
##CF98F81.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ACFC
Deuteranopia (green-blind)
#92AFF5
Tritanopia (blue-blind)
#CAA6BC
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cf98f8;
/* rgb */ color: rgb(207, 152, 248);
/* oklch */ color: oklch(76.7% 0.144 309.7);
Tailwind
colors: {
  custom: {
    50: '#dfb7fb',
    500: '#cf98f8',
    950: '#000000',
  },
}
SCSS
$custom: #cf98f8;
$custom-light: #dfb7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98f8",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 248
  },
  "hsl": {
    "h": 274.375,
    "s": 87.273,
    "l": 78.431
  },
  "oklch": {
    "l": 0.7671,
    "c": 0.14442,
    "h": 309.7
  },
  "luminance": 0.42499
}

Semantic roles & 50–950 ramp

primary
#CF98F8
secondary
#E3F5D6
accent
#E40262
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CF98F8

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

Preview Lab → · Contrast checker → · Palette generator →

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