#D338A7#D338A7

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

Color values

HEX#D338A7
RGBrgb(211, 56, 167)
HSLhsl(317, 64%, 52%)
HSVhsv(317, 73%, 83%)
CMYKcmyk(0%, 73.5%, 20.9%, 17.3%)
CIE-LABlab(51.23, 69.45, -25.45)
CIE-LCHlch(51.23, 73.96, 339.87°)
OKLaboklab(60.87% 0.2084 -0.0684)
OKLCHoklch(60.87% 0.219 341.8)
XYZxyz(35.2544, 19.4708, 38.4533)
Luminance0.1947 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338A7 #38D364
analogous
#B138D3 #D338A7 #D3385A
triadic
#D338A7 #A7D338 #38A7D3
tetradic
#D338A7 #D3B138 #38D364 #385AD3
square
#D338A7 #D3B138 #38D364 #385AD3
split-complementary
#D338A7 #5AD338 #38D3B1
monochromatic
#761A5C #A92583 #D338A7 #DE6ABD #E99CD3

Accessibility & contrast

On white

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

On black

4.89
#D338A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338A7
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338A7#FFFFFF#000000##000000
##D338A71.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#466AAA
Deuteranopia (green-blind)
#7783A3
Tritanopia (blue-blind)
#E03A6B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d338a7;
/* rgb */ color: rgb(211, 56, 167);
/* oklch */ color: oklch(60.9% 0.219 341.8);
Tailwind
colors: {
  custom: {
    50: '#e57dc1',
    500: '#d338a7',
    950: '#000000',
  },
}
SCSS
$custom: #d338a7;
$custom-light: #e57dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#d338a7",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 167
  },
  "hsl": {
    "h": 317.032,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60866,
    "c": 0.21934,
    "h": 341.8
  },
  "luminance": 0.19467
}

Semantic roles & 50–950 ramp

primary
#D338A7
secondary
#92D5A5
accent
#E77041
background
#FEF8FB
surface
#FDEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #D338A7

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

Preview Lab → · Contrast checker → · Palette generator →

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