#CA38B6#CA38B6

#CA38B6 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.2% C 0.224 H 334.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#CA38B6
RGBrgb(202, 56, 182)
HSLhsl(308, 58%, 51%)
HSVhsv(308, 72%, 79%)
CMYKcmyk(0%, 72.3%, 9.9%, 20.8%)
CIE-LABlab(50.41, 69.43, -35.64)
CIE-LCHlch(50.41, 78.04, 332.83°)
OKLaboklab(60.21% 0.2016 -0.0975)
OKLCHoklch(60.21% 0.224 334.2)
XYZxyz(34.2151, 18.7652, 46.0669)
Luminance0.1876 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38B6 #38CA4C
analogous
#9538CA #CA38B6 #CA386D
triadic
#CA38B6 #B6CA38 #38B6CA
tetradic
#CA38B6 #CA9538 #38CA4C #386DCA
square
#CA38B6 #CA9538 #38CA4C #386DCA
split-complementary
#CA38B6 #6DCA38 #38CA95
monochromatic
#6B1D60 #9B298C #CA38B6 #D768C8 #E499D9

Accessibility & contrast

On white

4.42
#CA38B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#CA38B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38B6
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38B6#FFFFFF#000000##000000
##CA38B61.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#356AB9
Deuteranopia (green-blind)
#6A80B2
Tritanopia (blue-blind)
#D34573
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ca38b6;
/* rgb */ color: rgb(202, 56, 182);
/* oklch */ color: oklch(60.2% 0.224 334.2);
Tailwind
colors: {
  custom: {
    50: '#de7ccc',
    500: '#ca38b6',
    950: '#000000',
  },
}
SCSS
$custom: #ca38b6;
$custom-light: #de7ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38b6",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 308.219,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.6021,
    "c": 0.22396,
    "h": 334.2
  },
  "luminance": 0.18762
}

Semantic roles & 50–950 ramp

primary
#CA38B6
secondary
#8ECF97
accent
#E15C47
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA38B6

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

Preview Lab → · Contrast checker → · Palette generator →

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