#D338C2#D338C2

#D338C2 is a light, highly saturated purple. Relative luminance 0.206; OKLCH L 62.2% C 0.237 H 333.0°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#D338C2
RGBrgb(211, 56, 194)
HSLhsl(307, 64%, 52%)
HSVhsv(307, 73%, 83%)
CMYKcmyk(0%, 73.5%, 8.1%, 17.3%)
CIE-LABlab(52.48, 73.21, -39.25)
CIE-LCHlch(52.48, 83.07, 331.80°)
OKLaboklab(62.17% 0.2112 -0.1078)
OKLCHoklch(62.17% 0.237 333)
XYZxyz(38.0160, 20.5755, 52.9977)
Luminance0.2057 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338C2 #38D349
analogous
#9738D3 #D338C2 #D33874
triadic
#D338C2 #C2D338 #38C2D3
tetradic
#D338C2 #D39738 #38D349 #3874D3
square
#D338C2 #D39738 #38D349 #3874D3
split-complementary
#D338C2 #74D338 #38D397
monochromatic
#761A6C #A9259A #D338C2 #DE6AD1 #E99CE1

Accessibility & contrast

On white

4.11
#D338C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#D338C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338C2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338C2#FFFFFF#000000##000000
##D338C21.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#316FC6
Deuteranopia (green-blind)
#6C85BE
Tritanopia (blue-blind)
#DC487A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d338c2;
/* rgb */ color: rgb(211, 56, 194);
/* oklch */ color: oklch(62.2% 0.237 333.0);
Tailwind
colors: {
  custom: {
    50: '#e57ed5',
    500: '#d338c2',
    950: '#000000',
  },
}
SCSS
$custom: #d338c2;
$custom-light: #e57ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#d338c2",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 306.581,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.62173,
    "c": 0.23713,
    "h": 333
  },
  "luminance": 0.20572
}

Semantic roles & 50–950 ramp

primary
#D338C2
secondary
#92D599
accent
#E75341
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D338C2

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

Preview Lab → · Contrast checker → · Palette generator →

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