#D338CD#D338CD

#D338CD is a light, highly saturated purple. Relative luminance 0.211; OKLCH L 62.8% C 0.245 H 329.7°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#D338CD
RGBrgb(211, 56, 205)
HSLhsl(302, 64%, 52%)
HSVhsv(302, 73%, 83%)
CMYKcmyk(0%, 73.5%, 2.8%, 17.3%)
CIE-LABlab(53.05, 74.88, -44.69)
CIE-LCHlch(53.05, 87.20, 329.17°)
OKLaboklab(62.76% 0.2116 -0.1235)
OKLCHoklch(62.76% 0.245 329.7)
XYZxyz(39.2974, 21.0880, 59.7464)
Luminance0.2109 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338CD #38D33E
analogous
#8C38D3 #D338CD #D3387F
triadic
#D338CD #CDD338 #38CDD3
tetradic
#D338CD #D38C38 #38D33E #387FD3
square
#D338CD #D38C38 #38D33E #387FD3
split-complementary
#D338CD #7FD338 #38D38C
monochromatic
#761A73 #A925A3 #D338CD #DE6ADA #E99CE6

Accessibility & contrast

On white

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

On black

5.22
#D338CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338CD
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338CD#FFFFFF#000000##000000
##D338CD1.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2271D1
Deuteranopia (green-blind)
#6686C9
Tritanopia (blue-blind)
#DB4E80
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #d338cd;
/* rgb */ color: rgb(211, 56, 205);
/* oklch */ color: oklch(62.8% 0.245 329.7);
Tailwind
colors: {
  custom: {
    50: '#e57edd',
    500: '#d338cd',
    950: '#000000',
  },
}
SCSS
$custom: #d338cd;
$custom-light: #e57edd;
$custom-dark: #000000;
JSON
{
  "hex": "#d338cd",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 302.323,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.6276,
    "c": 0.24496,
    "h": 329.7
  },
  "luminance": 0.21085
}

Semantic roles & 50–950 ramp

primary
#D338CD
secondary
#92D594
accent
#E74741
background
#FEF8FD
surface
#FDEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #D338CD

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

Preview Lab → · Contrast checker → · Palette generator →

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