#CA38B1#CA38B1

#CA38B1 is a mid, highly saturated pink. Relative luminance 0.186; OKLCH L 60.0% C 0.221 H 335.8°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#CA38B1
RGBrgb(202, 56, 177)
HSLhsl(310, 58%, 51%)
HSVhsv(310, 72%, 79%)
CMYKcmyk(0%, 72.3%, 12.4%, 20.8%)
CIE-LABlab(50.17, 68.70, -33.09)
CIE-LCHlch(50.17, 76.25, 334.28°)
OKLaboklab(59.96% 0.2012 -0.0902)
OKLCHoklch(59.96% 0.221 335.8)
XYZxyz(33.7076, 18.5622, 43.3941)
Luminance0.1856 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38B1 #38CA51
analogous
#9A38CA #CA38B1 #CA3868
triadic
#CA38B1 #B1CA38 #38B1CA
tetradic
#CA38B1 #CA9A38 #38CA51 #3868CA
square
#CA38B1 #CA9A38 #38CA51 #3868CA
split-complementary
#CA38B1 #68CA38 #38CA9A
monochromatic
#6B1D5E #9B2988 #CA38B1 #D768C4 #E499D7

Accessibility & contrast

On white

4.46
#CA38B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#CA38B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38B1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38B1#FFFFFF#000000##000000
##CA38B11.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3969B4
Deuteranopia (green-blind)
#6C7FAE
Tritanopia (blue-blind)
#D44371
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ca38b1;
/* rgb */ color: rgb(202, 56, 177);
/* oklch */ color: oklch(60.0% 0.221 335.8);
Tailwind
colors: {
  custom: {
    50: '#de7cc8',
    500: '#ca38b1',
    950: '#000000',
  },
}
SCSS
$custom: #ca38b1;
$custom-light: #de7cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38b1",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 310.274,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59959,
    "c": 0.2205,
    "h": 335.8
  },
  "luminance": 0.18559
}

Semantic roles & 50–950 ramp

primary
#CA38B1
secondary
#8ECF9A
accent
#E16147
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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