#D338B9#D338B9

#D338B9 is a mid, highly saturated pink. Relative luminance 0.202; OKLCH L 61.7% C 0.231 H 335.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#D338B9
RGBrgb(211, 56, 185)
HSLhsl(310, 64%, 52%)
HSVhsv(310, 73%, 83%)
CMYKcmyk(0%, 73.5%, 12.3%, 17.3%)
CIE-LABlab(52.04, 71.91, -34.72)
CIE-LCHlch(52.04, 79.85, 334.22°)
OKLaboklab(61.72% 0.2106 -0.0947)
OKLCHoklch(61.72% 0.231 335.8)
XYZxyz(37.0356, 20.1834, 47.8348)
Luminance0.2018 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338B9 #38D352
analogous
#A038D3 #D338B9 #D3386B
triadic
#D338B9 #B9D338 #38B9D3
tetradic
#D338B9 #D3A038 #38D352 #386BD3
square
#D338B9 #D3A038 #38D352 #386BD3
split-complementary
#D338B9 #6BD338 #38D3A0
monochromatic
#761A67 #A92593 #D338B9 #DE6ACB #E99CDC

Accessibility & contrast

On white

4.17
#D338B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#D338B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338B9
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338B9#FFFFFF#000000##000000
##D338B91.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#396DBD
Deuteranopia (green-blind)
#7084B5
Tritanopia (blue-blind)
#DE4475
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d338b9;
/* rgb */ color: rgb(211, 56, 185);
/* oklch */ color: oklch(61.7% 0.231 335.8);
Tailwind
colors: {
  custom: {
    50: '#e57ece',
    500: '#d338b9',
    950: '#000000',
  },
}
SCSS
$custom: #d338b9;
$custom-light: #e57ece;
$custom-dark: #000000;
JSON
{
  "hex": "#d338b9",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 310.065,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61716,
    "c": 0.23094,
    "h": 335.8
  },
  "luminance": 0.2018
}

Semantic roles & 50–950 ramp

primary
#D338B9
secondary
#92D59D
accent
#E75D41
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D338B9

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

Preview Lab → · Contrast checker → · Palette generator →

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