#D42FC4#D42FC4

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

Color values

HEX#D42FC4
RGBrgb(212, 47, 196)
HSLhsl(306, 66%, 51%)
HSVhsv(306, 78%, 83%)
CMYKcmyk(0%, 77.8%, 7.5%, 16.9%)
CIE-LABlab(51.86, 76.27, -41.38)
CIE-LCHlch(51.86, 86.78, 331.52°)
OKLaboklab(61.79% 0.2197 -0.1138)
OKLCHoklch(61.79% 0.247 332.6)
XYZxyz(38.1319, 20.0189, 54.0696)
Luminance0.2002 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D42FC4 #2FD43F
analogous
#912FD4 #D42FC4 #D42F71
triadic
#D42FC4 #C4D42F #2FC4D4
tetradic
#D42FC4 #D4912F #2FD43F #2F71D4
square
#D42FC4 #D4912F #2FD43F #2F71D4
split-complementary
#D42FC4 #71D42F #2FD491
monochromatic
#711768 #A42297 #D42FC4 #DE62D2 #E994E1

Accessibility & contrast

On white

4.20
#D42FC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#D42FC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D42FC4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D42FC4#FFFFFF#000000##000000
##D42FC41.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#236DC8
Deuteranopia (green-blind)
#6984C0
Tritanopia (blue-blind)
#DD4379
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d42fc4;
/* rgb */ color: rgb(212, 47, 196);
/* oklch */ color: oklch(61.8% 0.247 332.6);
Tailwind
colors: {
  custom: {
    50: '#e67bd6',
    500: '#d42fc4',
    950: '#000000',
  },
}
SCSS
$custom: #d42fc4;
$custom-light: #e67bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#d42fc4",
  "rgb": {
    "r": 212,
    "g": 47,
    "b": 196
  },
  "hsl": {
    "h": 305.818,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61791,
    "c": 0.24747,
    "h": 332.6
  },
  "luminance": 0.20016
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D42FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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