#CF97F2#CF97F2

#CF97F2 is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.3% C 0.139 H 311.6°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#CF97F2
RGBrgb(207, 151, 242)
HSLhsl(277, 78%, 77%)
HSVhsv(277, 38%, 95%)
CMYKcmyk(14.5%, 37.6%, 0%, 5.1%)
CIE-LABlab(70.74, 37.21, -37.64)
CIE-LCHlch(70.74, 52.92, 314.67°)
OKLaboklab(76.27% 0.0924 -0.1039)
OKLCHoklch(76.27% 0.139 311.6)
XYZxyz(52.8230, 41.8103, 89.2747)
Luminance0.4181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF97F2 #BAF297
analogous
#A297F2 #CF97F2 #F297E8
triadic
#CF97F2 #F2CF97 #97F2CF
tetradic
#CF97F2 #F2A297 #BAF297 #97E8F2
square
#CF97F2 #F2A297 #BAF297 #97E8F2
split-complementary
#CF97F2 #E8F297 #97F2A2
monochromatic
#9D2AE4 #B661EB #CF97F2 #E8CDF9 #F2E4FC

Accessibility & contrast

On white

2.24
#CF97F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.36
#CF97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF97F2
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF97F2#FFFFFF#000000##000000
##CF97F21.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#86AAF5
Deuteranopia (green-blind)
#93AEEF
Tritanopia (blue-blind)
#CCA4B9
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cf97f2;
/* rgb */ color: rgb(207, 151, 242);
/* oklch */ color: oklch(76.3% 0.139 311.6);
Tailwind
colors: {
  custom: {
    50: '#dfb6f6',
    500: '#cf97f2',
    950: '#000000',
  },
}
SCSS
$custom: #cf97f2;
$custom-light: #dfb6f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf97f2",
  "rgb": {
    "r": 207,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 276.923,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.76269,
    "c": 0.13902,
    "h": 311.6
  },
  "luminance": 0.41809
}

Semantic roles & 50–950 ramp

primary
#CF97F2
secondary
#E2F3D8
accent
#DA0B5B
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CF97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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