#CD38B5#CD38B5

#CD38B5 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.6% C 0.225 H 335.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#CD38B5
RGBrgb(205, 56, 181)
HSLhsl(310, 60%, 51%)
HSVhsv(310, 73%, 80%)
CMYKcmyk(0%, 72.7%, 11.7%, 19.6%)
CIE-LABlab(50.86, 69.97, -34.32)
CIE-LCHlch(50.86, 77.93, 333.87°)
OKLaboklab(60.61% 0.2045 -0.0937)
OKLCHoklch(60.61% 0.225 335.4)
XYZxyz(34.9320, 19.1468, 45.5631)
Luminance0.1914 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD38B5 #38CD50
analogous
#9A38CD #CD38B5 #CD386A
triadic
#CD38B5 #B5CD38 #38B5CD
tetradic
#CD38B5 #CD9A38 #38CD50 #386ACD
square
#CD38B5 #CD9A38 #38CD50 #386ACD
split-complementary
#CD38B5 #6ACD38 #38CD9A
monochromatic
#6F1C61 #A0288C #CD38B5 #D969C7 #E69AD9

Accessibility & contrast

On white

4.35
#CD38B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#CD38B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD38B5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD38B5#FFFFFF#000000##000000
##CD38B51.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#386BB8
Deuteranopia (green-blind)
#6D81B1
Tritanopia (blue-blind)
#D74473
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cd38b5;
/* rgb */ color: rgb(205, 56, 181);
/* oklch */ color: oklch(60.6% 0.225 335.4);
Tailwind
colors: {
  custom: {
    50: '#e07dcb',
    500: '#cd38b5',
    950: '#000000',
  },
}
SCSS
$custom: #cd38b5;
$custom-light: #e07dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd38b5",
  "rgb": {
    "r": 205,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 309.664,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.60611,
    "c": 0.22492,
    "h": 335.4
  },
  "luminance": 0.19144
}

Semantic roles & 50–950 ramp

primary
#CD38B5
secondary
#8FD19A
accent
#E35E45
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CD38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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