#D2AFEF#D2AFEF

#D2AFEF is a light, moderate violet. Relative luminance 0.506; OKLCH L 80.6% C 0.096 H 309.2°. Best body text is #000000 at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#D2AFEF
RGBrgb(210, 175, 239)
HSLhsl(273, 67%, 81%)
HSVhsv(273, 27%, 94%)
CMYKcmyk(12.1%, 26.8%, 0%, 6.3%)
CIE-LABlab(76.43, 24.42, -27.20)
CIE-LCHlch(76.43, 36.56, 311.92°)
OKLaboklab(80.64% 0.0606 -0.0743)
OKLCHoklch(80.64% 0.096 309.2)
XYZxyz(57.4855, 50.5941, 88.3819)
Luminance0.5059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2AFEF #CCEFAF
analogous
#B2AFEF #D2AFEF #EFAFEC
triadic
#D2AFEF #EFD2AF #AFEFD2
tetradic
#D2AFEF #EFB2AF #CCEFAF #AFECEF
square
#D2AFEF #EFB2AF #CCEFAF #AFECEF
split-complementary
#D2AFEF #ECEFAF #AFEFB2
monochromatic
#9949DB #B57CE5 #D2AFEF #EFE2F9 #F1E5FA

Accessibility & contrast

On white

1.89
#D2AFEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.12
#D2AFEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2AFEF
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2AFEF#FFFFFF#000000##000000
##D2AFEF1.001.8911.1211.12
#FFFFFF1.891.0021.0021.00
#00000011.1221.001.001.00
##00000011.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#A4BBF2
Deuteranopia (green-blind)
#ABBDED
Tritanopia (blue-blind)
#CFB7C6
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #d2afef;
/* rgb */ color: rgb(210, 175, 239);
/* oklch */ color: oklch(80.6% 0.096 309.2);
Tailwind
colors: {
  custom: {
    50: '#e0c7f4',
    500: '#d2afef',
    950: '#000000',
  },
}
SCSS
$custom: #d2afef;
$custom-light: #e0c7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d2afef",
  "rgb": {
    "r": 210,
    "g": 175,
    "b": 239
  },
  "hsl": {
    "h": 272.813,
    "s": 66.667,
    "l": 81.176
  },
  "oklch": {
    "l": 0.80635,
    "c": 0.09586,
    "h": 309.2
  },
  "luminance": 0.50594
}

Semantic roles & 50–950 ramp

primary
#D2AFEF
secondary
#9DCD75
accent
#CF176A
background
#FEFDFF
surface
#FCF9FE
border
#D5D2D6
text
#151317
muted
#848285

Preview Lab

Preview with #D2AFEF

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

Preview Lab → · Contrast checker → · Palette generator →

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