#D338A8#D338A8

#D338A8 is a mid, highly saturated pink. Relative luminance 0.195; OKLCH L 60.9% C 0.220 H 341.5°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#D338A8
RGBrgb(211, 56, 168)
HSLhsl(317, 64%, 52%)
HSVhsv(317, 73%, 83%)
CMYKcmyk(0%, 73.5%, 20.4%, 17.3%)
CIE-LABlab(51.28, 69.58, -25.97)
CIE-LCHlch(51.28, 74.27, 339.53°)
OKLaboklab(60.91% 0.2086 -0.0698)
OKLCHoklch(60.91% 0.22 341.5)
XYZxyz(35.3472, 19.5080, 38.9421)
Luminance0.1950 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338A8 #38D363
analogous
#B038D3 #D338A8 #D3385B
triadic
#D338A8 #A8D338 #38A8D3
tetradic
#D338A8 #D3B038 #38D363 #385BD3
square
#D338A8 #D3B038 #38D363 #385BD3
split-complementary
#D338A8 #5BD338 #38D3B0
monochromatic
#761A5D #A92584 #D338A8 #DE6ABE #E99CD4

Accessibility & contrast

On white

4.29
#D338A8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#D338A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338A8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338A8#FFFFFF#000000##000000
##D338A81.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#466AAB
Deuteranopia (green-blind)
#7783A4
Tritanopia (blue-blind)
#E03B6C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d338a8;
/* rgb */ color: rgb(211, 56, 168);
/* oklch */ color: oklch(60.9% 0.220 341.5);
Tailwind
colors: {
  custom: {
    50: '#e57dc2',
    500: '#d338a8',
    950: '#000000',
  },
}
SCSS
$custom: #d338a8;
$custom-light: #e57dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#d338a8",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 168
  },
  "hsl": {
    "h": 316.645,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60911,
    "c": 0.21996,
    "h": 341.5
  },
  "luminance": 0.19504
}

Semantic roles & 50–950 ramp

primary
#D338A8
secondary
#92D5A4
accent
#E76F41
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D338A8

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

Preview Lab → · Contrast checker → · Palette generator →

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