#CA38C4#CA38C4

#CA38C4 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 61.0% C 0.234 H 329.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#CA38C4
RGBrgb(202, 56, 196)
HSLhsl(302, 58%, 51%)
HSVhsv(302, 72%, 79%)
CMYKcmyk(0%, 72.3%, 3%, 20.8%)
CIE-LABlab(51.12, 71.56, -42.65)
CIE-LCHlch(51.12, 83.31, 329.20°)
OKLaboklab(60.95% 0.2023 -0.1178)
OKLCHoklch(60.95% 0.234 329.8)
XYZxyz(35.7349, 19.3732, 54.0711)
Luminance0.1937 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38C4 #38CA3E
analogous
#8738CA #CA38C4 #CA387B
triadic
#CA38C4 #C4CA38 #38C4CA
tetradic
#CA38C4 #CA8738 #38CA3E #387BCA
square
#CA38C4 #CA8738 #38CA3E #387BCA
split-complementary
#CA38C4 #7BCA38 #38CA87
monochromatic
#6B1D68 #9B2997 #CA38C4 #D768D2 #E499E1

Accessibility & contrast

On white

4.31
#CA38C4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#CA38C4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38C4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38C4#FFFFFF#000000##000000
##CA38C41.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#256DC8
Deuteranopia (green-blind)
#6381C0
Tritanopia (blue-blind)
#D14C7B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ca38c4;
/* rgb */ color: rgb(202, 56, 196);
/* oklch */ color: oklch(61.0% 0.234 329.8);
Tailwind
colors: {
  custom: {
    50: '#de7dd6',
    500: '#ca38c4',
    950: '#000000',
  },
}
SCSS
$custom: #ca38c4;
$custom-light: #de7dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38c4",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 302.466,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.6095,
    "c": 0.23406,
    "h": 329.8
  },
  "luminance": 0.1937
}

Semantic roles & 50–950 ramp

primary
#CA38C4
secondary
#8ECF91
accent
#E14D47
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CA38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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