#D18AFA#D18AFA

#D18AFA is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.7% C 0.170 H 312.1°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#D18AFA
RGBrgb(209, 138, 250)
HSLhsl(278, 92%, 76%)
HSVhsv(278, 45%, 98%)
CMYKcmyk(16.4%, 44.8%, 0%, 2%)
CIE-LABlab(68.49, 46.43, -45.52)
CIE-LCHlch(68.49, 65.02, 315.57°)
OKLaboklab(74.74% 0.1143 -0.1265)
OKLCHoklch(74.74% 0.17 312.1)
XYZxyz(52.6353, 38.6354, 95.1086)
Luminance0.3863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D18AFA #B3FA8A
analogous
#998AFA #D18AFA #FA8AEB
triadic
#D18AFA #FAD18A #8AFAD1
tetradic
#D18AFA #FA998A #B3FA8A #8AEBFA
square
#D18AFA #FA998A #B3FA8A #8AEBFA
split-complementary
#D18AFA #EBFA8A #8AFA99
monochromatic
#A315F5 #BA4FF7 #D18AFA #E8C5FD #F3E2FE

Accessibility & contrast

On white

2.41
#D18AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#D18AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D18AFA
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D18AFA#FFFFFF#000000##000000
##D18AFA1.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A3FE
Deuteranopia (green-blind)
#85A9F7
Tritanopia (blue-blind)
#CD9BB6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d18afa;
/* rgb */ color: rgb(209, 138, 250);
/* oklch */ color: oklch(74.7% 0.170 312.1);
Tailwind
colors: {
  custom: {
    50: '#e1aefc',
    500: '#d18afa',
    950: '#000000',
  },
}
SCSS
$custom: #d18afa;
$custom-light: #e1aefc;
$custom-dark: #000000;
JSON
{
  "hex": "#d18afa",
  "rgb": {
    "r": 209,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 278.036,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74735,
    "c": 0.17047,
    "h": 312.1
  },
  "luminance": 0.38634
}

Semantic roles & 50–950 ramp

primary
#D18AFA
secondary
#E1F6D5
accent
#E60054
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#151017
muted
#847F85

Preview Lab

Preview with #D18AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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