#D42FC2#D42FC2

#D42FC2 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.7% C 0.246 H 333.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#D42FC2
RGBrgb(212, 47, 194)
HSLhsl(307, 66%, 51%)
HSVhsv(307, 78%, 83%)
CMYKcmyk(0%, 77.8%, 8.5%, 16.9%)
CIE-LABlab(51.76, 75.99, -40.39)
CIE-LCHlch(51.76, 86.05, 332.01°)
OKLaboklab(61.69% 0.2197 -0.1109)
OKLCHoklch(61.69% 0.246 333.2)
XYZxyz(37.9058, 19.9284, 52.8787)
Luminance0.1993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42FC2 #2FD441
analogous
#932FD4 #D42FC2 #D42F70
triadic
#D42FC2 #C2D42F #2FC2D4
tetradic
#D42FC2 #D4932F #2FD441 #2F70D4
square
#D42FC2 #D4932F #2FD441 #2F70D4
split-complementary
#D42FC2 #70D42F #2FD493
monochromatic
#711767 #A42296 #D42FC2 #DE62D1 #E994E0

Accessibility & contrast

On white

4.21
#D42FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#D42FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42FC2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42FC2#FFFFFF#000000##000000
##D42FC21.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#266CC6
Deuteranopia (green-blind)
#6A84BE
Tritanopia (blue-blind)
#DE4278
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d42fc2;
/* rgb */ color: rgb(212, 47, 194);
/* oklch */ color: oklch(61.7% 0.246 333.2);
Tailwind
colors: {
  custom: {
    50: '#e67bd5',
    500: '#d42fc2',
    950: '#000000',
  },
}
SCSS
$custom: #d42fc2;
$custom-light: #e67bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#d42fc2",
  "rgb": {
    "r": 212,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 306.545,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61685,
    "c": 0.24612,
    "h": 333.2
  },
  "luminance": 0.19925
}

Semantic roles & 50–950 ramp

primary
#D42FC2
secondary
#8BD493
accent
#E9523F
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D42FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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