#D338B2#D338B2

#D338B2 is a mid, highly saturated pink. Relative luminance 0.199; OKLCH L 61.4% C 0.226 H 338.1°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#D338B2
RGBrgb(211, 56, 178)
HSLhsl(313, 64%, 52%)
HSVhsv(313, 73%, 83%)
CMYKcmyk(0%, 73.5%, 15.6%, 17.3%)
CIE-LABlab(51.72, 70.93, -31.15)
CIE-LCHlch(51.72, 77.47, 336.29°)
OKLaboklab(61.38% 0.2099 -0.0845)
OKLCHoklch(61.38% 0.226 338.1)
XYZxyz(36.3148, 19.8950, 44.0384)
Luminance0.1989 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338B2 #38D359
analogous
#A638D3 #D338B2 #D33865
triadic
#D338B2 #B2D338 #38B2D3
tetradic
#D338B2 #D3A638 #38D359 #3865D3
square
#D338B2 #D3A638 #38D359 #3865D3
split-complementary
#D338B2 #65D338 #38D3A6
monochromatic
#761A63 #A9258D #D338B2 #DE6AC5 #E99CD9

Accessibility & contrast

On white

4.22
#D338B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#D338B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338B2
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338B2#FFFFFF#000000##000000
##D338B21.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#7384AE
Tritanopia (blue-blind)
#DF4071
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d338b2;
/* rgb */ color: rgb(211, 56, 178);
/* oklch */ color: oklch(61.4% 0.226 338.1);
Tailwind
colors: {
  custom: {
    50: '#e57dc9',
    500: '#d338b2',
    950: '#000000',
  },
}
SCSS
$custom: #d338b2;
$custom-light: #e57dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#d338b2",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 312.774,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61375,
    "c": 0.22629,
    "h": 338.1
  },
  "luminance": 0.19892
}

Semantic roles & 50–950 ramp

primary
#D338B2
secondary
#92D5A0
accent
#E76441
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D338B2

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

Preview Lab → · Contrast checker → · Palette generator →

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