#D186F2#D186F2

#D186F2 is a light, vivid purple. Relative luminance 0.370; OKLCH L 73.7% C 0.168 H 314.8°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#D186F2
RGBrgb(209, 134, 242)
HSLhsl(282, 81%, 74%)
HSVhsv(282, 45%, 95%)
CMYKcmyk(13.6%, 44.6%, 0%, 5.1%)
CIE-LABlab(67.29, 46.88, -43.01)
CIE-LCHlch(67.29, 63.62, 317.46°)
OKLaboklab(73.72% 0.1186 -0.1192)
OKLCHoklch(73.72% 0.168 314.8)
XYZxyz(50.8441, 37.0176, 88.4539)
Luminance0.3702 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D186F2 #A7F286
analogous
#9B86F2 #D186F2 #F286DD
triadic
#D186F2 #F2D186 #86F2D1
tetradic
#D186F2 #F29B86 #A7F286 #86DDF2
square
#D186F2 #F29B86 #A7F286 #86DDF2
split-complementary
#D186F2 #DDF286 #86F29B
monochromatic
#A719E5 #BC4FEC #D186F2 #E6BDF8 #F4E3FC

Accessibility & contrast

On white

2.50
#D186F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#D186F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D186F2
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D186F2#FFFFFF#000000##000000
##D186F21.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF6
Deuteranopia (green-blind)
#86A6EF
Tritanopia (blue-blind)
#CF96B1
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d186f2;
/* rgb */ color: rgb(209, 134, 242);
/* oklch */ color: oklch(73.7% 0.168 314.8);
Tailwind
colors: {
  custom: {
    50: '#e1abf7',
    500: '#d186f2',
    950: '#000000',
  },
}
SCSS
$custom: #d186f2;
$custom-light: #e1abf7;
$custom-dark: #000000;
JSON
{
  "hex": "#d186f2",
  "rgb": {
    "r": 209,
    "g": 134,
    "b": 242
  },
  "hsl": {
    "h": 281.667,
    "s": 80.597,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73723,
    "c": 0.16814,
    "h": 314.8
  },
  "luminance": 0.37016
}

Semantic roles & 50–950 ramp

primary
#D186F2
secondary
#E0F4D7
accent
#DD0949
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#151017
muted
#847F85

Preview Lab

Preview with #D186F2

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

Preview Lab → · Contrast checker → · Palette generator →

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