#CD38BA#CD38BA

#CD38BA is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.9% C 0.228 H 333.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#CD38BA
RGBrgb(205, 56, 186)
HSLhsl(308, 60%, 51%)
HSVhsv(308, 73%, 80%)
CMYKcmyk(0%, 72.7%, 9.3%, 19.6%)
CIE-LABlab(51.10, 70.70, -36.85)
CIE-LCHlch(51.10, 79.73, 332.47°)
OKLaboklab(60.86% 0.2049 -0.101)
OKLCHoklch(60.86% 0.228 333.8)
XYZxyz(35.4542, 19.3557, 48.3136)
Luminance0.1935 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38BA #38CD4B
analogous
#9538CD #CD38BA #CD386F
triadic
#CD38BA #BACD38 #38BACD
tetradic
#CD38BA #CD9538 #38CD4B #386FCD
square
#CD38BA #CD9538 #38CD4B #386FCD
split-complementary
#CD38BA #6FCD38 #38CD95
monochromatic
#6F1C64 #A02890 #CD38BA #D969CB #E69ADC

Accessibility & contrast

On white

4.31
#CD38BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#CD38BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38BA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38BA#FFFFFF#000000##000000
##CD38BA1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#346CBE
Deuteranopia (green-blind)
#6B81B6
Tritanopia (blue-blind)
#D64675
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd38ba;
/* rgb */ color: rgb(205, 56, 186);
/* oklch */ color: oklch(60.9% 0.228 333.8);
Tailwind
colors: {
  custom: {
    50: '#e07dcf',
    500: '#cd38ba',
    950: '#000000',
  },
}
SCSS
$custom: #cd38ba;
$custom-light: #e07dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38ba",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 307.651,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60864,
    "c": 0.22839,
    "h": 333.8
  },
  "luminance": 0.19353
}

Semantic roles & 50–950 ramp

primary
#CD38BA
secondary
#8FD198
accent
#E35945
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CD38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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