#D181F2#D181F2

#D181F2 is a light, vivid purple. Relative luminance 0.357; OKLCH L 73.0% C 0.176 H 315.4°. Best body text is #000000 at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#D181F2
RGBrgb(209, 129, 242)
HSLhsl(282, 81%, 73%)
HSVhsv(282, 47%, 95%)
CMYKcmyk(13.6%, 46.7%, 0%, 5.1%)
CIE-LABlab(66.27, 49.49, -44.62)
CIE-LCHlch(66.27, 66.64, 317.96°)
OKLaboklab(72.96% 0.1255 -0.1238)
OKLCHoklch(72.96% 0.176 315.4)
XYZxyz(50.1693, 35.6680, 88.2290)
Luminance0.3567 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D181F2 #A2F281
analogous
#9881F2 #D181F2 #F281DA
triadic
#D181F2 #F2D181 #81F2D1
tetradic
#D181F2 #F29881 #A2F281 #81DAF2
square
#D181F2 #F29881 #A2F281 #81DAF2
split-complementary
#D181F2 #DAF281 #81F298
monochromatic
#A617E1 #BD4AEC #D181F2 #E5B8F8 #F5E3FC

Accessibility & contrast

On white

2.58
#D181F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.13
#D181F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D181F2
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D181F2#FFFFFF#000000##000000
##D181F21.002.588.138.13
#FFFFFF2.581.0021.0021.00
#0000008.1321.001.001.00
##0000008.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9CF6
Deuteranopia (green-blind)
#81A3EF
Tritanopia (blue-blind)
#CF92AE
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d181f2;
/* rgb */ color: rgb(209, 129, 242);
/* oklch */ color: oklch(73.0% 0.176 315.4);
Tailwind
colors: {
  custom: {
    50: '#e1a8f7',
    500: '#d181f2',
    950: '#000000',
  },
}
SCSS
$custom: #d181f2;
$custom-light: #e1a8f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d181f2",
  "rgb": {
    "r": 209,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 282.478,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72959,
    "c": 0.17628,
    "h": 315.4
  },
  "luminance": 0.35667
}

Semantic roles & 50–950 ramp

primary
#D181F2
secondary
#DFF4D7
accent
#DE0846
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#151017
muted
#847F85

Preview Lab

Preview with #D181F2

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

Preview Lab → · Contrast checker → · Palette generator →

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