#CA38BB#CA38BB

#CA38BB is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.5% C 0.228 H 332.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#CA38BB
RGBrgb(202, 56, 187)
HSLhsl(306, 58%, 51%)
HSVhsv(306, 72%, 79%)
CMYKcmyk(0%, 72.3%, 7.4%, 20.8%)
CIE-LABlab(50.66, 70.17, -38.17)
CIE-LCHlch(50.66, 79.88, 331.46°)
OKLaboklab(60.47% 0.2019 -0.1048)
OKLCHoklch(60.47% 0.228 332.6)
XYZxyz(34.7411, 18.9756, 48.8370)
Luminance0.1897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38BB #38CA47
analogous
#9038CA #CA38BB #CA3872
triadic
#CA38BB #BBCA38 #38BBCA
tetradic
#CA38BB #CA9038 #38CA47 #3872CA
square
#CA38BB #CA9038 #38CA47 #3872CA
split-complementary
#CA38BB #72CA38 #38CA90
monochromatic
#6B1D63 #9B2990 #CA38BB #D768CC #E499DC

Accessibility & contrast

On white

4.38
#CA38BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#CA38BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38BB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38BB#FFFFFF#000000##000000
##CA38BB1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#306BBF
Deuteranopia (green-blind)
#6880B7
Tritanopia (blue-blind)
#D34776
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ca38bb;
/* rgb */ color: rgb(202, 56, 187);
/* oklch */ color: oklch(60.5% 0.228 332.6);
Tailwind
colors: {
  custom: {
    50: '#de7dd0',
    500: '#ca38bb',
    950: '#000000',
  },
}
SCSS
$custom: #ca38bb;
$custom-light: #de7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38bb",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 306.164,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60468,
    "c": 0.22751,
    "h": 332.6
  },
  "luminance": 0.18973
}

Semantic roles & 50–950 ramp

primary
#CA38BB
secondary
#8ECF95
accent
#E15747
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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