#D338B4#D338B4

#D338B4 is a mid, highly saturated pink. Relative luminance 0.200; OKLCH L 61.5% C 0.228 H 337.4°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#D338B4
RGBrgb(211, 56, 180)
HSLhsl(312, 64%, 52%)
HSVhsv(312, 73%, 83%)
CMYKcmyk(0%, 73.5%, 14.7%, 17.3%)
CIE-LABlab(51.81, 71.20, -32.18)
CIE-LCHlch(51.81, 78.14, 335.68°)
OKLaboklab(61.47% 0.2101 -0.0875)
OKLCHoklch(61.47% 0.228 337.4)
XYZxyz(36.5171, 19.9759, 45.1037)
Luminance0.1997 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338B4 #38D357
analogous
#A538D3 #D338B4 #D33867
triadic
#D338B4 #B4D338 #38B4D3
tetradic
#D338B4 #D3A538 #38D357 #3867D3
square
#D338B4 #D3A538 #38D357 #3867D3
split-complementary
#D338B4 #67D338 #38D3A5
monochromatic
#761A64 #A9258E #D338B4 #DE6AC7 #E99CDA

Accessibility & contrast

On white

4.20
#D338B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#D338B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338B4
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338B4#FFFFFF#000000##000000
##D338B41.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6CB7
Deuteranopia (green-blind)
#7284B0
Tritanopia (blue-blind)
#DE4172
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #d338b4;
/* rgb */ color: rgb(211, 56, 180);
/* oklch */ color: oklch(61.5% 0.228 337.4);
Tailwind
colors: {
  custom: {
    50: '#e57dcb',
    500: '#d338b4',
    950: '#000000',
  },
}
SCSS
$custom: #d338b4;
$custom-light: #e57dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#d338b4",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 312,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.61471,
    "c": 0.2276,
    "h": 337.4
  },
  "luminance": 0.19973
}

Semantic roles & 50–950 ramp

primary
#D338B4
secondary
#92D59F
accent
#E76241
background
#FEF8FC
surface
#FDEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #D338B4

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

Preview Lab → · Contrast checker → · Palette generator →

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