#D338CC#D338CC

#D338CC is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.7% C 0.244 H 330.0°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#D338CC
RGBrgb(211, 56, 204)
HSLhsl(303, 64%, 52%)
HSVhsv(303, 73%, 83%)
CMYKcmyk(0%, 73.5%, 3.3%, 17.3%)
CIE-LABlab(52.99, 74.72, -44.20)
CIE-LCHlch(52.99, 86.82, 329.39°)
OKLaboklab(62.71% 0.2116 -0.1221)
OKLCHoklch(62.71% 0.244 330)
XYZxyz(39.1770, 21.0399, 59.1127)
Luminance0.2104 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338CC #38D33F
analogous
#8D38D3 #D338CC #D3387E
triadic
#D338CC #CCD338 #38CCD3
tetradic
#D338CC #D38D38 #38D33F #387ED3
square
#D338CC #D38D38 #38D33F #387ED3
split-complementary
#D338CC #7ED338 #38D38D
monochromatic
#761A72 #A925A3 #D338CC #DE6AD9 #E99CE6

Accessibility & contrast

On white

4.03
#D338CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#D338CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338CC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338CC#FFFFFF#000000##000000
##D338CC1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2371D0
Deuteranopia (green-blind)
#6786C8
Tritanopia (blue-blind)
#DB4D7F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d338cc;
/* rgb */ color: rgb(211, 56, 204);
/* oklch */ color: oklch(62.7% 0.244 330.0);
Tailwind
colors: {
  custom: {
    50: '#e57edc',
    500: '#d338cc',
    950: '#000000',
  },
}
SCSS
$custom: #d338cc;
$custom-light: #e57edc;
$custom-dark: #000000;
JSON
{
  "hex": "#d338cc",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 302.71,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.62706,
    "c": 0.24424,
    "h": 330
  },
  "luminance": 0.21037
}

Semantic roles & 50–950 ramp

primary
#D338CC
secondary
#92D595
accent
#E74841
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #D338CC

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

Preview Lab → · Contrast checker → · Palette generator →

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