#CB38BD#CB38BD

#CB38BD is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.7% C 0.229 H 332.2°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#CB38BD
RGBrgb(203, 56, 189)
HSLhsl(306, 59%, 51%)
HSVhsv(306, 72%, 80%)
CMYKcmyk(0%, 72.4%, 6.9%, 20.4%)
CIE-LABlab(50.92, 70.70, -38.90)
CIE-LCHlch(50.92, 80.70, 331.18°)
OKLaboklab(60.72% 0.203 -0.1069)
OKLCHoklch(60.72% 0.229 332.2)
XYZxyz(35.2282, 19.2019, 49.9852)
Luminance0.1920 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38BD #38CB46
analogous
#8F38CB #CB38BD #CB3873
triadic
#CB38BD #BDCB38 #38BDCB
tetradic
#CB38BD #CB8F38 #38CB46 #3873CB
square
#CB38BD #CB8F38 #38CB46 #3873CB
split-complementary
#CB38BD #73CB38 #38CB8F
monochromatic
#6C1C65 #9D2992 #CB38BD #D869CD #E499DD

Accessibility & contrast

On white

4.34
#CB38BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#CB38BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38BD
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38BD#FFFFFF#000000##000000
##CB38BD1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F6CC1
Deuteranopia (green-blind)
#6881B9
Tritanopia (blue-blind)
#D44877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb38bd;
/* rgb */ color: rgb(203, 56, 189);
/* oklch */ color: oklch(60.7% 0.229 332.2);
Tailwind
colors: {
  custom: {
    50: '#df7dd1',
    500: '#cb38bd',
    950: '#000000',
  },
}
SCSS
$custom: #cb38bd;
$custom-light: #df7dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38bd",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 305.714,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60722,
    "c": 0.22946,
    "h": 332.2
  },
  "luminance": 0.19199
}

Semantic roles & 50–950 ramp

primary
#CB38BD
secondary
#8FD095
accent
#E25546
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CB38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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