#DF97F2#DF97F2

#DF97F2 is a light, vivid purple. Relative luminance 0.442; OKLCH L 77.9% C 0.146 H 319.1°. Best body text is #000000 at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#DF97F2
RGBrgb(223, 151, 242)
HSLhsl(287, 78%, 77%)
HSVhsv(287, 38%, 95%)
CMYKcmyk(7.9%, 37.6%, 0%, 5.1%)
CIE-LABlab(72.38, 41.96, -34.96)
CIE-LCHlch(72.38, 54.62, 320.20°)
OKLaboklab(77.88% 0.1107 -0.0959)
OKLCHoklch(77.88% 0.146 319.1)
XYZxyz(57.5229, 44.2337, 89.4950)
Luminance0.4423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF97F2 #AAF297
analogous
#B297F2 #DF97F2 #F297D7
triadic
#DF97F2 #F2DF97 #97F2DF
tetradic
#DF97F2 #F2B297 #AAF297 #97D7F2
square
#DF97F2 #F2B297 #AAF297 #97D7F2
split-complementary
#DF97F2 #D7F297 #97F2B2
monochromatic
#BE2AE4 #CE61EB #DF97F2 #F0CDF9 #F7E4FC

Accessibility & contrast

On white

2.13
#DF97F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.85
#DF97F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DF97F2
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF97F2#FFFFFF#000000##000000
##DF97F21.002.139.859.85
#FFFFFF2.131.0021.0021.00
#0000009.8521.001.001.00
##0000009.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BADF5
Deuteranopia (green-blind)
#9DB4EF
Tritanopia (blue-blind)
#E0A2B9
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #df97f2;
/* rgb */ color: rgb(223, 151, 242);
/* oklch */ color: oklch(77.9% 0.146 319.1);
Tailwind
colors: {
  custom: {
    50: '#eab7f6',
    500: '#df97f2',
    950: '#000000',
  },
}
SCSS
$custom: #df97f2;
$custom-light: #eab7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#df97f2",
  "rgb": {
    "r": 223,
    "g": 151,
    "b": 242
  },
  "hsl": {
    "h": 287.473,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.77883,
    "c": 0.14647,
    "h": 319.1
  },
  "luminance": 0.44232
}

Semantic roles & 50–950 ramp

primary
#DF97F2
secondary
#DDF3D8
accent
#DA0B37
background
#FEFBFF
surface
#FDF6FE
border
#D5D0D6
text
#161117
muted
#848085

Preview Lab

Preview with #DF97F2

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

Preview Lab → · Contrast checker → · Palette generator →

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