#D338C4#D338C4

#D338C4 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.3% C 0.239 H 332.4°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#D338C4
RGBrgb(211, 56, 196)
HSLhsl(306, 64%, 52%)
HSVhsv(306, 73%, 83%)
CMYKcmyk(0%, 73.5%, 7.1%, 17.3%)
CIE-LABlab(52.58, 73.51, -40.25)
CIE-LCHlch(52.58, 83.81, 331.30°)
OKLaboklab(62.28% 0.2113 -0.1106)
OKLCHoklch(62.28% 0.239 332.4)
XYZxyz(38.2421, 20.6659, 54.1887)
Luminance0.2066 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338C4 #38D347
analogous
#9438D3 #D338C4 #D33877
triadic
#D338C4 #C4D338 #38C4D3
tetradic
#D338C4 #D39438 #38D347 #3877D3
square
#D338C4 #D39438 #38D347 #3877D3
split-complementary
#D338C4 #77D338 #38D394
monochromatic
#761A6D #A9259C #D338C4 #DE6AD3 #E99CE2

Accessibility & contrast

On white

4.09
#D338C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#D338C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338C4
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338C4#FFFFFF#000000##000000
##D338C41.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E6FC8
Deuteranopia (green-blind)
#6B85C0
Tritanopia (blue-blind)
#DC497B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #d338c4;
/* rgb */ color: rgb(211, 56, 196);
/* oklch */ color: oklch(62.3% 0.239 332.4);
Tailwind
colors: {
  custom: {
    50: '#e57ed6',
    500: '#d338c4',
    950: '#000000',
  },
}
SCSS
$custom: #d338c4;
$custom-light: #e57ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#d338c4",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 305.806,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.62278,
    "c": 0.23854,
    "h": 332.4
  },
  "luminance": 0.20663
}

Semantic roles & 50–950 ramp

primary
#D338C4
secondary
#92D598
accent
#E75141
background
#FEF8FD
surface
#FDEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #D338C4

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

Preview Lab → · Contrast checker → · Palette generator →

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