#CB38BA#CB38BA

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

Color values

HEX#CB38BA
RGBrgb(203, 56, 186)
HSLhsl(307, 59%, 51%)
HSVhsv(307, 72%, 80%)
CMYKcmyk(0%, 72.4%, 8.4%, 20.4%)
CIE-LABlab(50.77, 70.25, -37.39)
CIE-LCHlch(50.77, 79.58, 331.97°)
OKLaboklab(60.57% 0.2029 -0.1026)
OKLCHoklch(60.57% 0.227 333.2)
XYZxyz(34.9059, 19.0730, 48.2879)
Luminance0.1907 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB38BA #38CB49
analogous
#9238CB #CB38BA #CB3870
triadic
#CB38BA #BACB38 #38BACB
tetradic
#CB38BA #CB9238 #38CB49 #3870CB
square
#CB38BA #CB9238 #38CB49 #3870CB
split-complementary
#CB38BA #70CB38 #38CB92
monochromatic
#6C1C63 #9D298F #CB38BA #D869CB #E499DC

Accessibility & contrast

On white

4.36
#CB38BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#CB38BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB38BA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB38BA#FFFFFF#000000##000000
##CB38BA1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#326BBE
Deuteranopia (green-blind)
#6980B6
Tritanopia (blue-blind)
#D44775
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb38ba;
/* rgb */ color: rgb(203, 56, 186);
/* oklch */ color: oklch(60.6% 0.227 333.2);
Tailwind
colors: {
  custom: {
    50: '#df7dcf',
    500: '#cb38ba',
    950: '#000000',
  },
}
SCSS
$custom: #cb38ba;
$custom-light: #df7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#cb38ba",
  "rgb": {
    "r": 203,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 306.939,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60565,
    "c": 0.22733,
    "h": 333.2
  },
  "luminance": 0.1907
}

Semantic roles & 50–950 ramp

primary
#CB38BA
secondary
#8FD096
accent
#E25846
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CB38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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