#CB38B3#CB38B3

#CB38B3 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.2% C 0.222 H 335.5°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#CB38B3
RGBrgb(203, 56, 179)
HSLhsl(310, 59%, 51%)
HSVhsv(310, 72%, 80%)
CMYKcmyk(0%, 72.4%, 11.8%, 20.4%)
CIE-LABlab(50.43, 69.22, -33.84)
CIE-LCHlch(50.43, 77.05, 333.94°)
OKLaboklab(60.21% 0.2023 -0.0924)
OKLCHoklch(60.21% 0.222 335.5)
XYZxyz(34.1799, 18.7826, 44.4643)
Luminance0.1878 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38B3 #38CB50
analogous
#9938CB #CB38B3 #CB3869
triadic
#CB38B3 #B3CB38 #38B3CB
tetradic
#CB38B3 #CB9938 #38CB50 #3869CB
square
#CB38B3 #CB9938 #38CB50 #3869CB
split-complementary
#CB38B3 #69CB38 #38CB99
monochromatic
#6C1C5F #9D298A #CB38B3 #D869C6 #E499D8

Accessibility & contrast

On white

4.42
#CB38B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#CB38B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38B3
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38B3#FFFFFF#000000##000000
##CB38B31.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#386AB6
Deuteranopia (green-blind)
#6C80AF
Tritanopia (blue-blind)
#D54372
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cb38b3;
/* rgb */ color: rgb(203, 56, 179);
/* oklch */ color: oklch(60.2% 0.222 335.5);
Tailwind
colors: {
  custom: {
    50: '#df7cca',
    500: '#cb38b3',
    950: '#000000',
  },
}
SCSS
$custom: #cb38b3;
$custom-light: #df7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38b3",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 309.796,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60209,
    "c": 0.22243,
    "h": 335.5
  },
  "luminance": 0.1878
}

Semantic roles & 50–950 ramp

primary
#CB38B3
secondary
#8FD099
accent
#E25F46
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CB38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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