#CA38BC#CA38BC

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

Color values

HEX#CA38BC
RGBrgb(202, 56, 188)
HSLhsl(306, 58%, 51%)
HSVhsv(306, 72%, 79%)
CMYKcmyk(0%, 72.3%, 6.9%, 20.8%)
CIE-LABlab(50.71, 70.33, -38.67)
CIE-LCHlch(50.71, 80.26, 331.20°)
OKLaboklab(60.52% 0.202 -0.1063)
OKLCHoklch(60.52% 0.228 332.2)
XYZxyz(34.8485, 19.0186, 49.4028)
Luminance0.1902 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38BC #38CA46
analogous
#8F38CA #CA38BC #CA3873
triadic
#CA38BC #BCCA38 #38BCCA
tetradic
#CA38BC #CA8F38 #38CA46 #3873CA
square
#CA38BC #CA8F38 #38CA46 #3873CA
split-complementary
#CA38BC #73CA38 #38CA8F
monochromatic
#6B1D64 #9B2990 #CA38BC #D768CC #E499DD

Accessibility & contrast

On white

4.37
#CA38BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#CA38BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38BC
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38BC#FFFFFF#000000##000000
##CA38BC1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F6CC0
Deuteranopia (green-blind)
#6780B8
Tritanopia (blue-blind)
#D34877
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ca38bc;
/* rgb */ color: rgb(202, 56, 188);
/* oklch */ color: oklch(60.5% 0.228 332.2);
Tailwind
colors: {
  custom: {
    50: '#de7dd0',
    500: '#ca38bc',
    950: '#000000',
  },
}
SCSS
$custom: #ca38bc;
$custom-light: #de7dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38bc",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 305.753,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60521,
    "c": 0.22823,
    "h": 332.2
  },
  "luminance": 0.19016
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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