#D228FE#D228FE

#D228FE is a light, highly saturated purple. Relative luminance 0.224; OKLCH L 64.6% C 0.294 H 317.6°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#D228FE
RGBrgb(210, 40, 254)
HSLhsl(288, 99%, 58%)
HSVhsv(288, 84%, 100%)
CMYKcmyk(17.3%, 84.3%, 0%, 0.4%)
CIE-LABlab(54.42, 86.79, -70.15)
CIE-LCHlch(54.42, 111.59, 321.05°)
OKLaboklab(64.64% 0.2168 -0.1978)
OKLCHoklch(64.64% 0.294 317.6)
XYZxyz(45.2239, 22.3771, 95.6838)
Luminance0.2238 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D228FE #54FE28
analogous
#6728FE #D228FE #FE28BF
triadic
#D228FE #FED228 #28FED2
tetradic
#D228FE #FE6728 #54FE28 #28BFFE
square
#D228FE #FE6728 #54FE28 #28BFFE
split-complementary
#D228FE #BFFE28 #28FE67
monochromatic
#8801AB #B801E8 #D228FE #DF65FE #ECA2FF

Accessibility & contrast

On white

3.84
#D228FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#D228FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D228FE
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D228FE#FFFFFF#000000##000000
##D228FE1.003.845.485.48
#FFFFFF3.841.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078FF
Deuteranopia (green-blind)
#3087FA
Tritanopia (blue-blind)
#D05F99
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #d228fe;
/* rgb */ color: rgb(210, 40, 254);
/* oklch */ color: oklch(64.6% 0.294 317.6);
Tailwind
colors: {
  custom: {
    50: '#e57bff',
    500: '#d228fe',
    950: '#000000',
  },
}
SCSS
$custom: #d228fe;
$custom-light: #e57bff;
$custom-dark: #000000;
JSON
{
  "hex": "#d228fe",
  "rgb": {
    "r": 210,
    "g": 40,
    "b": 254
  },
  "hsl": {
    "h": 287.664,
    "s": 99.074,
    "l": 57.647
  },
  "oklch": {
    "l": 0.64642,
    "c": 0.29351,
    "h": 317.6
  },
  "luminance": 0.22375
}

Semantic roles & 50–950 ramp

primary
#D228FE
secondary
#A8EC96
accent
#FF2955
background
#FEF8FF
surface
#FDEFFF
border
#D5CAD7
text
#170B18
muted
#857C86

Preview Lab

Preview with #D228FE

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

Preview Lab → · Contrast checker → · Palette generator →

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