#D581F2#D581F2

#D581F2 is a light, vivid purple. Relative luminance 0.363; OKLCH L 73.4% C 0.178 H 316.9°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#D581F2
RGBrgb(213, 129, 242)
HSLhsl(285, 81%, 73%)
HSVhsv(285, 47%, 95%)
CMYKcmyk(12%, 46.7%, 0%, 5.1%)
CIE-LABlab(66.72, 50.60, -43.88)
CIE-LCHlch(66.72, 66.97, 319.07°)
OKLaboklab(73.39% 0.1301 -0.1216)
OKLCHoklch(73.39% 0.178 316.9)
XYZxyz(51.3155, 36.2590, 88.2827)
Luminance0.3626 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D581F2 #9EF281
analogous
#9D81F2 #D581F2 #F281D6
triadic
#D581F2 #F2D581 #81F2D5
tetradic
#D581F2 #F29D81 #9EF281 #81D6F2
square
#D581F2 #F29D81 #9EF281 #81D6F2
split-complementary
#D581F2 #D6F281 #81F29D
monochromatic
#AD17E1 #C34AEC #D581F2 #E7B8F8 #F6E3FC

Accessibility & contrast

On white

2.55
#D581F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#D581F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D581F2
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D581F2#FFFFFF#000000##000000
##D581F21.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9DF6
Deuteranopia (green-blind)
#84A5EF
Tritanopia (blue-blind)
#D491AE
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d581f2;
/* rgb */ color: rgb(213, 129, 242);
/* oklch */ color: oklch(73.4% 0.178 316.9);
Tailwind
colors: {
  custom: {
    50: '#e4a8f7',
    500: '#d581f2',
    950: '#000000',
  },
}
SCSS
$custom: #d581f2;
$custom-light: #e4a8f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d581f2",
  "rgb": {
    "r": 213,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 284.602,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73394,
    "c": 0.17809,
    "h": 316.9
  },
  "luminance": 0.36257
}

Semantic roles & 50–950 ramp

primary
#D581F2
secondary
#DEF4D7
accent
#DE083F
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D581F2

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

Preview Lab → · Contrast checker → · Palette generator →

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