#D451F2#D451F2

#D451F2 is a light, highly saturated purple. Relative luminance 0.263; OKLCH L 67.2% C 0.247 H 319.6°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#D451F2
RGBrgb(212, 81, 242)
HSLhsl(289, 86%, 63%)
HSVhsv(289, 67%, 95%)
CMYKcmyk(12.4%, 66.5%, 0%, 5.1%)
CIE-LABlab(58.32, 72.57, -57.20)
CIE-LCHlch(58.32, 92.40, 321.76°)
OKLaboklab(67.22% 0.188 -0.16)
OKLCHoklch(67.22% 0.247 319.6)
XYZxyz(46.1188, 26.2949, 86.6333)
Luminance0.2629 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D451F2 #6FF251
analogous
#8351F2 #D451F2 #F251BF
triadic
#D451F2 #F2D451 #51F2D4
tetradic
#D451F2 #F28351 #6FF251 #51BFF2
square
#D451F2 #F28351 #6FF251 #51BFF2
split-complementary
#D451F2 #BFF251 #51F283
monochromatic
#9A0EBB #C618EE #D451F2 #E28AF6 #F0C3FB

Accessibility & contrast

On white

3.36
#D451F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#D451F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D451F2
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D451F2#FFFFFF#000000##000000
##D451F21.003.366.266.26
#FFFFFF3.361.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F83F7
Deuteranopia (green-blind)
#5D91EE
Tritanopia (blue-blind)
#D46E9B
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #d451f2;
/* rgb */ color: rgb(212, 81, 242);
/* oklch */ color: oklch(67.2% 0.247 319.6);
Tailwind
colors: {
  custom: {
    50: '#e58bf7',
    500: '#d451f2',
    950: '#000000',
  },
}
SCSS
$custom: #d451f2;
$custom-light: #e58bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#d451f2",
  "rgb": {
    "r": 212,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 288.82,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67221,
    "c": 0.24689,
    "h": 319.6
  },
  "luminance": 0.26293
}

Semantic roles & 50–950 ramp

primary
#D451F2
secondary
#BDECB3
accent
#E3032D
background
#FEF9FF
surface
#FDF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #D451F2

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

Preview Lab → · Contrast checker → · Palette generator →

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