#D338AB#D338AB

#D338AB is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 61.0% C 0.222 H 340.4°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#D338AB
RGBrgb(211, 56, 171)
HSLhsl(315, 64%, 52%)
HSVhsv(315, 73%, 83%)
CMYKcmyk(0%, 73.5%, 19%, 17.3%)
CIE-LABlab(51.41, 69.98, -27.54)
CIE-LCHlch(51.41, 75.20, 338.52°)
OKLaboklab(61.05% 0.209 -0.0743)
OKLCHoklch(61.05% 0.222 340.4)
XYZxyz(35.6299, 19.6210, 40.4310)
Luminance0.1962 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338AB #38D360
analogous
#AE38D3 #D338AB #D3385D
triadic
#D338AB #ABD338 #38ABD3
tetradic
#D338AB #D3AE38 #38D360 #385DD3
square
#D338AB #D3AE38 #38D360 #385DD3
split-complementary
#D338AB #5DD338 #38D3AE
monochromatic
#761A5F #A92587 #D338AB #DE6AC0 #E99CD5

Accessibility & contrast

On white

4.27
#D338AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#D338AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338AB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338AB#FFFFFF#000000##000000
##D338AB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#446BAE
Deuteranopia (green-blind)
#7683A7
Tritanopia (blue-blind)
#E03C6D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #d338ab;
/* rgb */ color: rgb(211, 56, 171);
/* oklch */ color: oklch(61.0% 0.222 340.4);
Tailwind
colors: {
  custom: {
    50: '#e57dc4',
    500: '#d338ab',
    950: '#000000',
  },
}
SCSS
$custom: #d338ab;
$custom-light: #e57dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#d338ab",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 315.484,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61048,
    "c": 0.22181,
    "h": 340.4
  },
  "luminance": 0.19618
}

Semantic roles & 50–950 ramp

primary
#D338AB
secondary
#92D5A3
accent
#E76C41
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #D338AB

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

Preview Lab → · Contrast checker → · Palette generator →

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