#D338B7#D338B7

#D338B7 is a mid, highly saturated pink. Relative luminance 0.201; OKLCH L 61.6% C 0.230 H 336.4°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#D338B7
RGBrgb(211, 56, 183)
HSLhsl(311, 64%, 52%)
HSVhsv(311, 73%, 83%)
CMYKcmyk(0%, 73.5%, 13.3%, 17.3%)
CIE-LABlab(51.95, 71.62, -33.71)
CIE-LCHlch(51.95, 79.16, 334.80°)
OKLaboklab(61.62% 0.2104 -0.0918)
OKLCHoklch(61.62% 0.23 336.4)
XYZxyz(36.8260, 20.0995, 46.7307)
Luminance0.2010 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338B7 #38D354
analogous
#A238D3 #D338B7 #D33869
triadic
#D338B7 #B7D338 #38B7D3
tetradic
#D338B7 #D3A238 #38D354 #3869D3
square
#D338B7 #D3A238 #38D354 #3869D3
split-complementary
#D338B7 #69D338 #38D3A2
monochromatic
#761A66 #A92591 #D338B7 #DE6AC9 #E99CDB

Accessibility & contrast

On white

4.18
#D338B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#D338B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338B7
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338B7#FFFFFF#000000##000000
##D338B71.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6DBA
Deuteranopia (green-blind)
#7184B3
Tritanopia (blue-blind)
#DE4374
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #d338b7;
/* rgb */ color: rgb(211, 56, 183);
/* oklch */ color: oklch(61.6% 0.230 336.4);
Tailwind
colors: {
  custom: {
    50: '#e57ecd',
    500: '#d338b7',
    950: '#000000',
  },
}
SCSS
$custom: #d338b7;
$custom-light: #e57ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#d338b7",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 310.839,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61617,
    "c": 0.22959,
    "h": 336.4
  },
  "luminance": 0.20096
}

Semantic roles & 50–950 ramp

primary
#D338B7
secondary
#92D59E
accent
#E75F41
background
#FEF8FC
surface
#FDEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #D338B7

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

Preview Lab → · Contrast checker → · Palette generator →

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