#CA38B4#CA38B4

#CA38B4 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.1% C 0.223 H 334.8°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#CA38B4
RGBrgb(202, 56, 180)
HSLhsl(309, 58%, 51%)
HSVhsv(309, 72%, 79%)
CMYKcmyk(0%, 72.3%, 10.9%, 20.8%)
CIE-LABlab(50.31, 69.13, -34.62)
CIE-LCHlch(50.31, 77.32, 333.40°)
OKLaboklab(60.11% 0.2015 -0.0946)
OKLCHoklch(60.11% 0.223 334.8)
XYZxyz(34.0099, 18.6832, 44.9862)
Luminance0.1868 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38B4 #38CA4E
analogous
#9738CA #CA38B4 #CA386B
triadic
#CA38B4 #B4CA38 #38B4CA
tetradic
#CA38B4 #CA9738 #38CA4E #386BCA
square
#CA38B4 #CA9738 #38CA4E #386BCA
split-complementary
#CA38B4 #6BCA38 #38CA97
monochromatic
#6B1D5F #9B298A #CA38B4 #D768C6 #E499D8

Accessibility & contrast

On white

4.43
#CA38B4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#CA38B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38B4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38B4#FFFFFF#000000##000000
##CA38B41.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#376AB7
Deuteranopia (green-blind)
#6B7FB1
Tritanopia (blue-blind)
#D44472
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ca38b4;
/* rgb */ color: rgb(202, 56, 180);
/* oklch */ color: oklch(60.1% 0.223 334.8);
Tailwind
colors: {
  custom: {
    50: '#de7ccb',
    500: '#ca38b4',
    950: '#000000',
  },
}
SCSS
$custom: #ca38b4;
$custom-light: #de7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38b4",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 309.041,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60109,
    "c": 0.22257,
    "h": 334.8
  },
  "luminance": 0.1868
}

Semantic roles & 50–950 ramp

primary
#CA38B4
secondary
#8ECF98
accent
#E15E47
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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