#CD38B8#CD38B8

#CD38B8 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.8% C 0.227 H 334.4°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#CD38B8
RGBrgb(205, 56, 184)
HSLhsl(308, 60%, 51%)
HSVhsv(308, 73%, 80%)
CMYKcmyk(0%, 72.7%, 10.2%, 19.6%)
CIE-LABlab(51.00, 70.40, -35.84)
CIE-LCHlch(51.00, 79.00, 333.02°)
OKLaboklab(60.76% 0.2047 -0.0981)
OKLCHoklch(60.76% 0.227 334.4)
XYZxyz(35.2431, 19.2712, 47.2017)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38B8 #38CD4D
analogous
#9738CD #CD38B8 #CD386D
triadic
#CD38B8 #B8CD38 #38B8CD
tetradic
#CD38B8 #CD9738 #38CD4D #386DCD
square
#CD38B8 #CD9738 #38CD4D #386DCD
split-complementary
#CD38B8 #6DCD38 #38CD97
monochromatic
#6F1C63 #A0288F #CD38B8 #D969C9 #E69ADB

Accessibility & contrast

On white

4.33
#CD38B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#CD38B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38B8
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38B8#FFFFFF#000000##000000
##CD38B81.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#366CBC
Deuteranopia (green-blind)
#6C81B4
Tritanopia (blue-blind)
#D74574
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cd38b8;
/* rgb */ color: rgb(205, 56, 184);
/* oklch */ color: oklch(60.8% 0.227 334.4);
Tailwind
colors: {
  custom: {
    50: '#e07dcd',
    500: '#cd38b8',
    950: '#000000',
  },
}
SCSS
$custom: #cd38b8;
$custom-light: #e07dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38b8",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 308.456,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60762,
    "c": 0.22699,
    "h": 334.4
  },
  "luminance": 0.19268
}

Semantic roles & 50–950 ramp

primary
#CD38B8
secondary
#8FD199
accent
#E35B45
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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