#D187FC#D187FC

#D187FC is a light, vivid violet. Relative luminance 0.379; OKLCH L 74.4% C 0.178 H 311.9°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#D187FC
RGBrgb(209, 135, 252)
HSLhsl(278, 95%, 76%)
HSVhsv(278, 46%, 99%)
CMYKcmyk(17.1%, 46.4%, 0%, 1.2%)
CIE-LABlab(67.96, 48.43, -47.44)
CIE-LCHlch(67.96, 67.80, 315.59°)
OKLaboklab(74.37% 0.1187 -0.132)
OKLCHoklch(74.37% 0.178 311.9)
XYZxyz(52.5261, 37.9126, 96.6274)
Luminance0.3791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D187FC #B2FC87
analogous
#9687FC #D187FC #FC87EC
triadic
#D187FC #FCD187 #87FCD1
tetradic
#D187FC #FC9687 #B2FC87 #87ECFC
square
#D187FC #FC9687 #B2FC87 #87ECFC
split-complementary
#D187FC #ECFC87 #87FC96
monochromatic
#A310F9 #BA4BFB #D187FC #E8C3FD #F4E1FE

Accessibility & contrast

On white

2.45
#D187FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#D187FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D187FC
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D187FC#FFFFFF#000000##000000
##D187FC1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA2FF
Deuteranopia (green-blind)
#81A7F9
Tritanopia (blue-blind)
#CD99B6
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d187fc;
/* rgb */ color: rgb(209, 135, 252);
/* oklch */ color: oklch(74.4% 0.178 311.9);
Tailwind
colors: {
  custom: {
    50: '#e1acfe',
    500: '#d187fc',
    950: '#000000',
  },
}
SCSS
$custom: #d187fc;
$custom-light: #e1acfe;
$custom-dark: #000000;
JSON
{
  "hex": "#d187fc",
  "rgb": {
    "r": 209,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 277.949,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.7437,
    "c": 0.17752,
    "h": 311.9
  },
  "luminance": 0.37912
}

Semantic roles & 50–950 ramp

primary
#D187FC
secondary
#E1F6D5
accent
#E60054
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D187FC

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

Preview Lab → · Contrast checker → · Palette generator →

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