#CA38C2#CA38C2

#CA38C2 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.8% C 0.233 H 330.4°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#CA38C2
RGBrgb(202, 56, 194)
HSLhsl(303, 58%, 51%)
HSVhsv(303, 72%, 79%)
CMYKcmyk(0%, 72.3%, 4%, 20.8%)
CIE-LABlab(51.02, 71.25, -41.66)
CIE-LCHlch(51.02, 82.53, 329.68°)
OKLaboklab(60.84% 0.2022 -0.1149)
OKLCHoklch(60.84% 0.233 330.4)
XYZxyz(35.5088, 19.2827, 52.8802)
Luminance0.1928 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38C2 #38CA40
analogous
#8938CA #CA38C2 #CA3879
triadic
#CA38C2 #C2CA38 #38C2CA
tetradic
#CA38C2 #CA8938 #38CA40 #3879CA
square
#CA38C2 #CA8938 #38CA40 #3879CA
split-complementary
#CA38C2 #79CA38 #38CA89
monochromatic
#6B1D67 #9B2995 #CA38C2 #D768D1 #E499E0

Accessibility & contrast

On white

4.32
#CA38C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#CA38C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38C2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38C2#FFFFFF#000000##000000
##CA38C21.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#286DC6
Deuteranopia (green-blind)
#6480BE
Tritanopia (blue-blind)
#D24B7A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ca38c2;
/* rgb */ color: rgb(202, 56, 194);
/* oklch */ color: oklch(60.8% 0.233 330.4);
Tailwind
colors: {
  custom: {
    50: '#de7dd5',
    500: '#ca38c2',
    950: '#000000',
  },
}
SCSS
$custom: #ca38c2;
$custom-light: #de7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38c2",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 303.288,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60841,
    "c": 0.23258,
    "h": 330.4
  },
  "luminance": 0.1928
}

Semantic roles & 50–950 ramp

primary
#CA38C2
secondary
#8ECF92
accent
#E14F47
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CA38C2

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

Preview Lab → · Contrast checker → · Palette generator →

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