#CF97FA#CF97FA

#CF97FA is a light, vivid violet. Relative luminance 0.423; OKLCH L 76.6% C 0.148 H 309.3°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#CF97FA
RGBrgb(207, 151, 250)
HSLhsl(274, 91%, 79%)
HSVhsv(274, 40%, 98%)
CMYKcmyk(17.2%, 39.6%, 0%, 2%)
CIE-LABlab(71.08, 38.91, -41.47)
CIE-LCHlch(71.08, 56.87, 313.17°)
OKLaboklab(76.63% 0.094 -0.1149)
OKLCHoklch(76.63% 0.148 309.3)
XYZxyz(54.0509, 42.3014, 95.7415)
Luminance0.4230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97FA #C2FA97
analogous
#9D97FA #CF97FA #FA97F4
triadic
#CF97FA #FACF97 #97FACF
tetradic
#CF97FA #FA9D97 #C2FA97 #97F4FA
square
#CF97FA #FA9D97 #C2FA97 #97F4FA
split-complementary
#CF97FA #F4FA97 #97FA9D
monochromatic
#9922F4 #B45DF7 #CF97FA #EAD1FD #F2E2FE

Accessibility & contrast

On white

2.22
#CF97FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#CF97FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97FA
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97FA#FFFFFF#000000##000000
##CF97FA1.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ABFE
Deuteranopia (green-blind)
#90AFF7
Tritanopia (blue-blind)
#CAA6BD
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cf97fa;
/* rgb */ color: rgb(207, 151, 250);
/* oklch */ color: oklch(76.6% 0.148 309.3);
Tailwind
colors: {
  custom: {
    50: '#dfb6fc',
    500: '#cf97fa',
    950: '#000000',
  },
}
SCSS
$custom: #cf97fa;
$custom-light: #dfb6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97fa",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 273.939,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.76635,
    "c": 0.14844,
    "h": 309.3
  },
  "luminance": 0.42301
}

Semantic roles & 50–950 ramp

primary
#CF97FA
secondary
#E3F6D5
accent
#E60064
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CF97FA

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

Preview Lab → · Contrast checker → · Palette generator →

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