#DF87F2#DF87F2

#DF87F2 is a light, vivid purple. Relative luminance 0.394; OKLCH L 75.4% C 0.173 H 320.3°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#DF87F2
RGBrgb(223, 135, 242)
HSLhsl(289, 80%, 74%)
HSVhsv(289, 44%, 95%)
CMYKcmyk(7.9%, 44.2%, 0%, 5.1%)
CIE-LABlab(69.06, 50.32, -40.13)
CIE-LCHlch(69.06, 64.36, 321.43°)
OKLaboklab(75.39% 0.1333 -0.1106)
OKLCHoklch(75.39% 0.173 320.3)
XYZxyz(55.1204, 39.4287, 88.6942)
Luminance0.3943 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DF87F2 #9AF287
analogous
#AA87F2 #DF87F2 #F287D0
triadic
#DF87F2 #F2DF87 #87F2DF
tetradic
#DF87F2 #F2AA87 #9AF287 #87D0F2
square
#DF87F2 #F2AA87 #9AF287 #87D0F2
split-complementary
#DF87F2 #D0F287 #87F2AA
monochromatic
#C119E6 #D050EC #DF87F2 #EEBEF8 #F8E3FC

Accessibility & contrast

On white

2.36
#DF87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#DF87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DF87F2
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DF87F2#FFFFFF#000000##000000
##DF87F21.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A2F6
Deuteranopia (green-blind)
#90ACEF
Tritanopia (blue-blind)
#E095B1
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #df87f2;
/* rgb */ color: rgb(223, 135, 242);
/* oklch */ color: oklch(75.4% 0.173 320.3);
Tailwind
colors: {
  custom: {
    50: '#ebacf6',
    500: '#df87f2',
    950: '#000000',
  },
}
SCSS
$custom: #df87f2;
$custom-light: #ebacf6;
$custom-dark: #000000;
JSON
{
  "hex": "#df87f2",
  "rgb": {
    "r": 223,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 289.346,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7539,
    "c": 0.17325,
    "h": 320.3
  },
  "luminance": 0.39427
}

Semantic roles & 50–950 ramp

primary
#DF87F2
secondary
#DCF4D7
accent
#DD092E
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #DF87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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