#D298FA#D298FA

#D298FA is a light, vivid violet. Relative luminance 0.431; OKLCH L 77.1% C 0.148 H 310.5°. Best body text is #000000 at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#D298FA
RGBrgb(210, 152, 250)
HSLhsl(276, 91%, 79%)
HSVhsv(276, 39%, 98%)
CMYKcmyk(16%, 39.2%, 0%, 2%)
CIE-LABlab(71.60, 39.23, -40.64)
CIE-LCHlch(71.60, 56.49, 313.99°)
OKLaboklab(77.1% 0.096 -0.1125)
OKLCHoklch(77.1% 0.148 310.5)
XYZxyz(55.0588, 43.0610, 95.8351)
Luminance0.4306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D298FA #C0FA98
analogous
#A198FA #D298FA #FA98F1
triadic
#D298FA #FAD298 #98FAD2
tetradic
#D298FA #FAA198 #C0FA98 #98F1FA
square
#D298FA #FAA198 #C0FA98 #98F1FA
split-complementary
#D298FA #F1FA98 #98FAA1
monochromatic
#9F23F4 #B95EF7 #D298FA #ECD2FD #F2E2FE

Accessibility & contrast

On white

2.18
#D298FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.61
#D298FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D298FA
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D298FA#FFFFFF#000000##000000
##D298FA1.002.189.619.61
#FFFFFF2.181.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ADFE
Deuteranopia (green-blind)
#92B1F7
Tritanopia (blue-blind)
#CEA6BD
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d298fa;
/* rgb */ color: rgb(210, 152, 250);
/* oklch */ color: oklch(77.1% 0.148 310.5);
Tailwind
colors: {
  custom: {
    50: '#e1b7fc',
    500: '#d298fa',
    950: '#000000',
  },
}
SCSS
$custom: #d298fa;
$custom-light: #e1b7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d298fa",
  "rgb": {
    "r": 210,
    "g": 152,
    "b": 250
  },
  "hsl": {
    "h": 275.51,
    "s": 90.741,
    "l": 78.824
  },
  "oklch": {
    "l": 0.77095,
    "c": 0.14788,
    "h": 310.5
  },
  "luminance": 0.4306
}

Semantic roles & 50–950 ramp

primary
#D298FA
secondary
#E3F6D5
accent
#E6005E
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #D298FA

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

Preview Lab → · Contrast checker → · Palette generator →

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