#CA38C6#CA38C6

#CA38C6 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.1% C 0.236 H 329.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#CA38C6
RGBrgb(202, 56, 198)
HSLhsl(302, 58%, 51%)
HSVhsv(302, 72%, 79%)
CMYKcmyk(0%, 72.3%, 2%, 20.8%)
CIE-LABlab(51.23, 71.87, -43.64)
CIE-LCHlch(51.23, 84.08, 328.73°)
OKLaboklab(61.06% 0.2023 -0.1207)
OKLCHoklch(61.06% 0.236 329.2)
XYZxyz(35.9640, 19.4648, 55.2780)
Luminance0.1946 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38C6 #38CA3C
analogous
#8538CA #CA38C6 #CA387D
triadic
#CA38C6 #C6CA38 #38C6CA
tetradic
#CA38C6 #CA8538 #38CA3C #387DCA
square
#CA38C6 #CA8538 #38CA3C #387DCA
split-complementary
#CA38C6 #7DCA38 #38CA85
monochromatic
#6B1D69 #9B2998 #CA38C6 #D768D4 #E499E2

Accessibility & contrast

On white

4.29
#CA38C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#CA38C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38C6
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38C6#FFFFFF#000000##000000
##CA38C61.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#226ECA
Deuteranopia (green-blind)
#6281C2
Tritanopia (blue-blind)
#D14D7C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ca38c6;
/* rgb */ color: rgb(202, 56, 198);
/* oklch */ color: oklch(61.1% 0.236 329.2);
Tailwind
colors: {
  custom: {
    50: '#de7dd8',
    500: '#ca38c6',
    950: '#000000',
  },
}
SCSS
$custom: #ca38c6;
$custom-light: #de7dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38c6",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 301.644,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.6106,
    "c": 0.23554,
    "h": 329.2
  },
  "luminance": 0.19462
}

Semantic roles & 50–950 ramp

primary
#CA38C6
secondary
#8ECF90
accent
#E14B47
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CA38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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