#D297EA#D297EA

#D297EA is a light, vivid purple. Relative luminance 0.418; OKLCH L 76.2% C 0.131 H 315.8°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#D297EA
RGBrgb(210, 151, 234)
HSLhsl(283, 66%, 75%)
HSVhsv(283, 35%, 92%)
CMYKcmyk(10.3%, 35.5%, 0%, 8.2%)
CIE-LABlab(70.72, 36.45, -33.28)
CIE-LCHlch(70.72, 49.36, 317.61°)
OKLaboklab(76.21% 0.094 -0.0914)
OKLCHoklch(76.21% 0.131 315.8)
XYZxyz(52.4940, 41.7765, 83.1243)
Luminance0.4178 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D297EA #AFEA97
analogous
#A897EA #D297EA #EA97D8
triadic
#D297EA #EAD297 #97EAD2
tetradic
#D297EA #EAA897 #AFEA97 #97D8EA
square
#D297EA #EAA897 #AFEA97 #97D8EA
split-complementary
#D297EA #D8EA97 #97EAA8
monochromatic
#A631D5 #BC64E0 #D297EA #E8CAF4 #F4E6FA

Accessibility & contrast

On white

2.24
#D297EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#D297EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D297EA
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D297EA#FFFFFF#000000##000000
##D297EA1.002.249.359.35
#FFFFFF2.241.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA9ED
Deuteranopia (green-blind)
#98AFE7
Tritanopia (blue-blind)
#D1A2B6
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d297ea;
/* rgb */ color: rgb(210, 151, 234);
/* oklch */ color: oklch(76.2% 0.131 315.8);
Tailwind
colors: {
  custom: {
    50: '#e1b6f1',
    500: '#d297ea',
    950: '#000000',
  },
}
SCSS
$custom: #d297ea;
$custom-light: #e1b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d297ea",
  "rgb": {
    "r": 210,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 282.651,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.76213,
    "c": 0.13112,
    "h": 315.8
  },
  "luminance": 0.41775
}

Semantic roles & 50–950 ramp

primary
#D297EA
secondary
#E1F1DA
accent
#CE174C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #D297EA

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

Preview Lab → · Contrast checker → · Palette generator →

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