#D168F2#D168F2

#D168F2 is a light, highly saturated purple. Relative luminance 0.299; OKLCH L 69.5% C 0.215 H 317.4°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#D168F2
RGBrgb(209, 104, 242)
HSLhsl(286, 84%, 68%)
HSVhsv(286, 57%, 95%)
CMYKcmyk(13.6%, 57%, 0%, 5.1%)
CIE-LABlab(61.54, 61.92, -52.08)
CIE-LCHlch(61.54, 80.91, 319.93°)
OKLaboklab(69.47% 0.1582 -0.1454)
OKLCHoklch(69.47% 0.215 317.4)
XYZxyz(47.2695, 29.8685, 87.2624)
Luminance0.2987 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D168F2 #89F268
analogous
#8C68F2 #D168F2 #F268CE
triadic
#D168F2 #F2D168 #68F2D1
tetradic
#D168F2 #F28C68 #89F268 #68CEF2
square
#D168F2 #F28C68 #89F268 #68CEF2
split-complementary
#D168F2 #CEF268 #68F28C
monochromatic
#A112CE #C030ED #D168F2 #E2A0F7 #F3D9FC

Accessibility & contrast

On white

3.01
#D168F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#D168F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D168F2
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D168F2#FFFFFF#000000##000000
##D168F21.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#468EF6
Deuteranopia (green-blind)
#6C98EE
Tritanopia (blue-blind)
#D07EA3
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d168f2;
/* rgb */ color: rgb(209, 104, 242);
/* oklch */ color: oklch(69.5% 0.215 317.4);
Tailwind
colors: {
  custom: {
    50: '#e298f7',
    500: '#d168f2',
    950: '#000000',
  },
}
SCSS
$custom: #d168f2;
$custom-light: #e298f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d168f2",
  "rgb": {
    "r": 209,
    "g": 104,
    "b": 242
  },
  "hsl": {
    "h": 285.652,
    "s": 84.146,
    "l": 67.843
  },
  "oklch": {
    "l": 0.69474,
    "c": 0.21483,
    "h": 317.4
  },
  "luminance": 0.29867
}

Semantic roles & 50–950 ramp

primary
#D168F2
secondary
#D0F0C6
accent
#E10539
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160E17
muted
#847E85

Preview Lab

Preview with #D168F2

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

Preview Lab → · Contrast checker → · Palette generator →

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