#D338C6#D338C6

#D338C6 is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.4% C 0.240 H 331.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#D338C6
RGBrgb(211, 56, 198)
HSLhsl(305, 64%, 52%)
HSVhsv(305, 73%, 83%)
CMYKcmyk(0%, 73.5%, 6.2%, 17.3%)
CIE-LABlab(52.68, 73.81, -41.24)
CIE-LCHlch(52.68, 84.55, 330.81°)
OKLaboklab(62.38% 0.2114 -0.1135)
OKLCHoklch(62.38% 0.24 331.8)
XYZxyz(38.4712, 20.7576, 55.3955)
Luminance0.2075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338C6 #38D345
analogous
#9238D3 #D338C6 #D33879
triadic
#D338C6 #C6D338 #38C6D3
tetradic
#D338C6 #D39238 #38D345 #3879D3
square
#D338C6 #D39238 #38D345 #3879D3
split-complementary
#D338C6 #79D338 #38D392
monochromatic
#761A6F #A9259E #D338C6 #DE6AD4 #E99CE3

Accessibility & contrast

On white

4.08
#D338C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#D338C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338C6
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338C6#FFFFFF#000000##000000
##D338C61.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C70CA
Deuteranopia (green-blind)
#6A85C2
Tritanopia (blue-blind)
#DC4A7C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d338c6;
/* rgb */ color: rgb(211, 56, 198);
/* oklch */ color: oklch(62.4% 0.240 331.8);
Tailwind
colors: {
  custom: {
    50: '#e57ed8',
    500: '#d338c6',
    950: '#000000',
  },
}
SCSS
$custom: #d338c6;
$custom-light: #e57ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#d338c6",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 305.032,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.62383,
    "c": 0.23995,
    "h": 331.8
  },
  "luminance": 0.20754
}

Semantic roles & 50–950 ramp

primary
#D338C6
secondary
#92D597
accent
#E74F41
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D338C6

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

Preview Lab → · Contrast checker → · Palette generator →

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