#D42FC3#D42FC3

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

Color values

HEX#D42FC3
RGBrgb(212, 47, 195)
HSLhsl(306, 66%, 51%)
HSVhsv(306, 78%, 83%)
CMYKcmyk(0%, 77.8%, 8%, 16.9%)
CIE-LABlab(51.81, 76.13, -40.88)
CIE-LCHlch(51.81, 86.41, 331.76°)
OKLaboklab(61.74% 0.2197 -0.1124)
OKLCHoklch(61.74% 0.247 332.9)
XYZxyz(38.0185, 19.9735, 53.4721)
Luminance0.1997 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42FC3 #2FD440
analogous
#922FD4 #D42FC3 #D42F70
triadic
#D42FC3 #C3D42F #2FC3D4
tetradic
#D42FC3 #D4922F #2FD440 #2F70D4
square
#D42FC3 #D4922F #2FD440 #2F70D4
split-complementary
#D42FC3 #70D42F #2FD492
monochromatic
#711768 #A42297 #D42FC3 #DE62D2 #E994E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D42FC3#FFFFFF#000000##000000
##D42FC31.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)
#256DC7
Deuteranopia (green-blind)
#6984BF
Tritanopia (blue-blind)
#DE4378
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d42fc3;
/* rgb */ color: rgb(212, 47, 195);
/* oklch */ color: oklch(61.7% 0.247 332.9);
Tailwind
colors: {
  custom: {
    50: '#e67bd5',
    500: '#d42fc3',
    950: '#000000',
  },
}
SCSS
$custom: #d42fc3;
$custom-light: #e67bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#d42fc3",
  "rgb": {
    "r": 212,
    "g": 47,
    "b": 195
  },
  "hsl": {
    "h": 306.182,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61738,
    "c": 0.2468,
    "h": 332.9
  },
  "luminance": 0.1997
}

Semantic roles & 50–950 ramp

primary
#D42FC3
secondary
#8BD492
accent
#E9513F
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D42FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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