#D338B1#D338B1

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

Color values

HEX#D338B1
RGBrgb(211, 56, 177)
HSLhsl(313, 64%, 52%)
HSVhsv(313, 73%, 83%)
CMYKcmyk(0%, 73.5%, 16.1%, 17.3%)
CIE-LABlab(51.67, 70.79, -30.64)
CIE-LCHlch(51.67, 77.13, 336.60°)
OKLaboklab(61.33% 0.2098 -0.0831)
OKLCHoklch(61.33% 0.226 338.4)
XYZxyz(36.2148, 19.8550, 43.5116)
Luminance0.1985 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338B1 #38D35A
analogous
#A738D3 #D338B1 #D33864
triadic
#D338B1 #B1D338 #38B1D3
tetradic
#D338B1 #D3A738 #38D35A #3864D3
square
#D338B1 #D3A738 #38D35A #3864D3
split-complementary
#D338B1 #64D338 #38D3A7
monochromatic
#761A62 #A9258C #D338B1 #DE6AC5 #E99CD8

Accessibility & contrast

On white

4.23
#D338B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#D338B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338B1
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338B1#FFFFFF#000000##000000
##D338B11.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#406CB4
Deuteranopia (green-blind)
#7484AD
Tritanopia (blue-blind)
#DF4071
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d338b1;
/* rgb */ color: rgb(211, 56, 177);
/* oklch */ color: oklch(61.3% 0.226 338.4);
Tailwind
colors: {
  custom: {
    50: '#e57dc8',
    500: '#d338b1',
    950: '#000000',
  },
}
SCSS
$custom: #d338b1;
$custom-light: #e57dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#d338b1",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 313.161,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61328,
    "c": 0.22564,
    "h": 338.4
  },
  "luminance": 0.19852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D338B1

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

Preview Lab → · Contrast checker → · Palette generator →

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