#CA38BA#CA38BA

#CA38BA is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.4% C 0.227 H 332.9°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#CA38BA
RGBrgb(202, 56, 186)
HSLhsl(307, 58%, 51%)
HSVhsv(307, 72%, 79%)
CMYKcmyk(0%, 72.3%, 7.9%, 20.8%)
CIE-LABlab(50.61, 70.02, -37.66)
CIE-LCHlch(50.61, 79.51, 331.73°)
OKLaboklab(60.42% 0.2019 -0.1034)
OKLCHoklch(60.42% 0.227 332.9)
XYZxyz(34.6344, 18.9330, 48.2752)
Luminance0.1893 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38BA #38CA48
analogous
#9138CA #CA38BA #CA3871
triadic
#CA38BA #BACA38 #38BACA
tetradic
#CA38BA #CA9138 #38CA48 #3871CA
square
#CA38BA #CA9138 #38CA48 #3871CA
split-complementary
#CA38BA #71CA38 #38CA91
monochromatic
#6B1D62 #9B298F #CA38BA #D768CB #E499DC

Accessibility & contrast

On white

4.39
#CA38BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CA38BA#FFFFFF#000000##000000
##CA38BA1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#316BBE
Deuteranopia (green-blind)
#6880B6
Tritanopia (blue-blind)
#D34775
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ca38ba;
/* rgb */ color: rgb(202, 56, 186);
/* oklch */ color: oklch(60.4% 0.227 332.9);
Tailwind
colors: {
  custom: {
    50: '#de7dcf',
    500: '#ca38ba',
    950: '#000000',
  },
}
SCSS
$custom: #ca38ba;
$custom-light: #de7dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38ba",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 306.575,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60416,
    "c": 0.2268,
    "h": 332.9
  },
  "luminance": 0.1893
}

Semantic roles & 50–950 ramp

primary
#CA38BA
secondary
#8ECF96
accent
#E15847
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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