#D18BF7#D18BF7

#D18BF7 is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.7% C 0.165 H 312.8°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#D18BF7
RGBrgb(209, 139, 247)
HSLhsl(279, 87%, 76%)
HSVhsv(279, 44%, 97%)
CMYKcmyk(15.4%, 43.7%, 0%, 3.1%)
CIE-LABlab(68.56, 45.27, -43.76)
CIE-LCHlch(68.56, 62.97, 315.97°)
OKLaboklab(74.75% 0.1124 -0.1214)
OKLCHoklch(74.75% 0.165 312.8)
XYZxyz(52.3128, 38.7370, 92.6989)
Luminance0.3874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D18BF7 #B1F78B
analogous
#9B8BF7 #D18BF7 #F78BE7
triadic
#D18BF7 #F7D18B #8BF7D1
tetradic
#D18BF7 #F79B8B #B1F78B #8BE7F7
square
#D18BF7 #F79B8B #B1F78B #8BE7F7
split-complementary
#D18BF7 #E7F78B #8BF79B
monochromatic
#A418EF #BA52F3 #D18BF7 #E8C4FB #F4E2FD

Accessibility & contrast

On white

2.40
#D18BF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#D18BF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D18BF7
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D18BF7#FFFFFF#000000##000000
##D18BF71.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A3FB
Deuteranopia (green-blind)
#88A9F4
Tritanopia (blue-blind)
#CE9BB5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d18bf7;
/* rgb */ color: rgb(209, 139, 247);
/* oklch */ color: oklch(74.7% 0.165 312.8);
Tailwind
colors: {
  custom: {
    50: '#e1aefa',
    500: '#d18bf7',
    950: '#000000',
  },
}
SCSS
$custom: #d18bf7;
$custom-light: #e1aefa;
$custom-dark: #000000;
JSON
{
  "hex": "#d18bf7",
  "rgb": {
    "r": 209,
    "g": 139,
    "b": 247
  },
  "hsl": {
    "h": 278.889,
    "s": 87.097,
    "l": 75.686
  },
  "oklch": {
    "l": 0.74746,
    "c": 0.16548,
    "h": 312.8
  },
  "luminance": 0.38736
}

Semantic roles & 50–950 ramp

primary
#D18BF7
secondary
#E1F5D6
accent
#E40251
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #D18BF7

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

Preview Lab → · Contrast checker → · Palette generator →

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