#D338CB#D338CB

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

Color values

HEX#D338CB
RGBrgb(211, 56, 203)
HSLhsl(303, 64%, 52%)
HSVhsv(303, 73%, 83%)
CMYKcmyk(0%, 73.5%, 3.8%, 17.3%)
CIE-LABlab(52.94, 74.57, -43.71)
CIE-LCHlch(52.94, 86.44, 329.62°)
OKLaboklab(62.65% 0.2115 -0.1206)
OKLCHoklch(62.65% 0.244 330.3)
XYZxyz(39.0575, 20.9921, 58.4831)
Luminance0.2099 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D338CB #38D340
analogous
#8E38D3 #D338CB #D3387D
triadic
#D338CB #CBD338 #38CBD3
tetradic
#D338CB #D38E38 #38D340 #387DD3
square
#D338CB #D38E38 #38D340 #387DD3
split-complementary
#D338CB #7DD338 #38D38E
monochromatic
#761A72 #A925A2 #D338CB #DE6AD8 #E99CE5

Accessibility & contrast

On white

4.04
#D338CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#D338CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D338CB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D338CB#FFFFFF#000000##000000
##D338CB1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2571CF
Deuteranopia (green-blind)
#6886C7
Tritanopia (blue-blind)
#DB4D7F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #d338cb;
/* rgb */ color: rgb(211, 56, 203);
/* oklch */ color: oklch(62.7% 0.244 330.3);
Tailwind
colors: {
  custom: {
    50: '#e57edb',
    500: '#d338cb',
    950: '#000000',
  },
}
SCSS
$custom: #d338cb;
$custom-light: #e57edb;
$custom-dark: #000000;
JSON
{
  "hex": "#d338cb",
  "rgb": {
    "r": 211,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 303.097,
    "s": 63.786,
    "l": 52.353
  },
  "oklch": {
    "l": 0.62651,
    "c": 0.24353,
    "h": 330.3
  },
  "luminance": 0.20989
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D338CB

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

Preview Lab → · Contrast checker → · Palette generator →

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