#CF98FA#CF98FA

#CF98FA is a light, vivid violet. Relative luminance 0.426; OKLCH L 76.8% C 0.147 H 309.1°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#CF98FA
RGBrgb(207, 152, 250)
HSLhsl(274, 91%, 79%)
HSVhsv(274, 39%, 98%)
CMYKcmyk(17.2%, 39.2%, 0%, 2%)
CIE-LABlab(71.30, 38.37, -41.13)
CIE-LCHlch(71.30, 56.24, 313.01°)
OKLaboklab(76.8% 0.0926 -0.1139)
OKLCHoklch(76.8% 0.147 309.1)
XYZxyz(54.2125, 42.6247, 95.7954)
Luminance0.4262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF98FA #C3FA98
analogous
#9E98FA #CF98FA #FA98F4
triadic
#CF98FA #FACF98 #98FACF
tetradic
#CF98FA #FA9E98 #C3FA98 #98F4FA
square
#CF98FA #FA9E98 #C3FA98 #98F4FA
split-complementary
#CF98FA #F4FA98 #98FA9E
monochromatic
#9923F4 #B45EF7 #CF98FA #EAD2FD #F1E2FE

Accessibility & contrast

On white

2.20
#CF98FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#CF98FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF98FA
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF98FA#FFFFFF#000000##000000
##CF98FA1.002.209.529.52
#FFFFFF2.201.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ACFE
Deuteranopia (green-blind)
#91AFF7
Tritanopia (blue-blind)
#CAA7BD
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cf98fa;
/* rgb */ color: rgb(207, 152, 250);
/* oklch */ color: oklch(76.8% 0.147 309.1);
Tailwind
colors: {
  custom: {
    50: '#dfb7fc',
    500: '#cf98fa',
    950: '#000000',
  },
}
SCSS
$custom: #cf98fa;
$custom-light: #dfb7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf98fa",
  "rgb": {
    "r": 207,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 273.673,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76802,
    "c": 0.1468,
    "h": 309.1
  },
  "luminance": 0.42624
}

Semantic roles & 50–950 ramp

primary
#CF98FA
secondary
#E4F6D5
accent
#E60065
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CF98FA

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

Preview Lab → · Contrast checker → · Palette generator →

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