#CD38B9#CD38B9

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

Color values

HEX#CD38B9
RGBrgb(205, 56, 185)
HSLhsl(308, 60%, 51%)
HSVhsv(308, 73%, 80%)
CMYKcmyk(0%, 72.7%, 9.8%, 19.6%)
CIE-LABlab(51.05, 70.55, -36.35)
CIE-LCHlch(51.05, 79.36, 332.74°)
OKLaboklab(60.81% 0.2048 -0.0995)
OKLCHoklch(60.81% 0.228 334.1)
XYZxyz(35.3483, 19.3133, 47.7557)
Luminance0.1931 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38B9 #38CD4C
analogous
#9638CD #CD38B9 #CD386E
triadic
#CD38B9 #B9CD38 #38B9CD
tetradic
#CD38B9 #CD9638 #38CD4C #386ECD
square
#CD38B9 #CD9638 #38CD4C #386ECD
split-complementary
#CD38B9 #6ECD38 #38CD96
monochromatic
#6F1C64 #A02890 #CD38B9 #D969CA #E69ADB

Accessibility & contrast

On white

4.32
#CD38B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#CD38B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38B9
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38B9#FFFFFF#000000##000000
##CD38B91.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#356CBD
Deuteranopia (green-blind)
#6B81B5
Tritanopia (blue-blind)
#D74675
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cd38b9;
/* rgb */ color: rgb(205, 56, 185);
/* oklch */ color: oklch(60.8% 0.228 334.1);
Tailwind
colors: {
  custom: {
    50: '#e07dce',
    500: '#cd38b9',
    950: '#000000',
  },
}
SCSS
$custom: #cd38b9;
$custom-light: #e07dce;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38b9",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 308.054,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60813,
    "c": 0.22769,
    "h": 334.1
  },
  "luminance": 0.1931
}

Semantic roles & 50–950 ramp

primary
#CD38B9
secondary
#8FD198
accent
#E35A45
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD38B9

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

Preview Lab → · Contrast checker → · Palette generator →

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