#CD38BF#CD38BF

#CD38BF is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.1% C 0.232 H 332.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CD38BF
RGBrgb(205, 56, 191)
HSLhsl(306, 60%, 51%)
HSVhsv(306, 73%, 80%)
CMYKcmyk(0%, 72.7%, 6.8%, 19.6%)
CIE-LABlab(51.35, 71.45, -39.37)
CIE-LCHlch(51.35, 81.57, 331.15°)
OKLaboklab(61.12% 0.2051 -0.1082)
OKLCHoklch(61.12% 0.232 332.2)
XYZxyz(35.9951, 19.5720, 51.1621)
Luminance0.1957 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38BF #38CD46
analogous
#9038CD #CD38BF #CD3874
triadic
#CD38BF #BFCD38 #38BFCD
tetradic
#CD38BF #CD9038 #38CD46 #3874CD
square
#CD38BF #CD9038 #38CD46 #3874CD
split-complementary
#CD38BF #74CD38 #38CD90
monochromatic
#6F1C67 #A02894 #CD38BF #D969CF #E69ADE

Accessibility & contrast

On white

4.27
#CD38BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#CD38BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38BF
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38BF#FFFFFF#000000##000000
##CD38BF1.004.274.914.91
#FFFFFF4.271.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E6DC3
Deuteranopia (green-blind)
#6882BB
Tritanopia (blue-blind)
#D64978
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd38bf;
/* rgb */ color: rgb(205, 56, 191);
/* oklch */ color: oklch(61.1% 0.232 332.2);
Tailwind
colors: {
  custom: {
    50: '#e07dd3',
    500: '#cd38bf',
    950: '#000000',
  },
}
SCSS
$custom: #cd38bf;
$custom-light: #e07dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38bf",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 305.638,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.61124,
    "c": 0.23193,
    "h": 332.2
  },
  "luminance": 0.19569
}

Semantic roles & 50–950 ramp

primary
#CD38BF
secondary
#8FD196
accent
#E35445
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CD38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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