#D42FC5#D42FC5

#D42FC5 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.8% C 0.248 H 332.3°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#D42FC5
RGBrgb(212, 47, 197)
HSLhsl(305, 66%, 51%)
HSVhsv(305, 78%, 83%)
CMYKcmyk(0%, 77.8%, 7.1%, 16.9%)
CIE-LABlab(51.91, 76.42, -41.88)
CIE-LCHlch(51.91, 87.14, 331.28°)
OKLaboklab(61.84% 0.2198 -0.1153)
OKLCHoklch(61.84% 0.248 332.3)
XYZxyz(38.2461, 20.0646, 54.6710)
Luminance0.2006 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42FC5 #2FD43E
analogous
#912FD4 #D42FC5 #D42F72
triadic
#D42FC5 #C5D42F #2FC5D4
tetradic
#D42FC5 #D4912F #2FD43E #2F72D4
square
#D42FC5 #D4912F #2FD43E #2F72D4
split-complementary
#D42FC5 #72D42F #2FD491
monochromatic
#711769 #A42298 #D42FC5 #DE62D3 #E994E1

Accessibility & contrast

On white

4.19
#D42FC5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#D42FC5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42FC5
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42FC5#FFFFFF#000000##000000
##D42FC51.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#226DC9
Deuteranopia (green-blind)
#6884C1
Tritanopia (blue-blind)
#DD4479
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d42fc5;
/* rgb */ color: rgb(212, 47, 197);
/* oklch */ color: oklch(61.8% 0.248 332.3);
Tailwind
colors: {
  custom: {
    50: '#e67bd7',
    500: '#d42fc5',
    950: '#000000',
  },
}
SCSS
$custom: #d42fc5;
$custom-light: #e67bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#d42fc5",
  "rgb": {
    "r": 212,
    "g": 47,
    "b": 197
  },
  "hsl": {
    "h": 305.455,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61844,
    "c": 0.24816,
    "h": 332.3
  },
  "luminance": 0.20061
}

Semantic roles & 50–950 ramp

primary
#D42FC5
secondary
#8BD491
accent
#E94F3F
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D42FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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