#CA38B3#CA38B3

#CA38B3 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.1% C 0.222 H 335.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#CA38B3
RGBrgb(202, 56, 179)
HSLhsl(309, 58%, 51%)
HSVhsv(309, 72%, 79%)
CMYKcmyk(0%, 72.3%, 11.4%, 20.8%)
CIE-LABlab(50.27, 68.99, -34.12)
CIE-LCHlch(50.27, 76.96, 333.69°)
OKLaboklab(60.06% 0.2014 -0.0932)
OKLCHoklch(60.06% 0.222 335.2)
XYZxyz(33.9084, 18.6426, 44.4516)
Luminance0.1864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38B3 #38CA4F
analogous
#9838CA #CA38B3 #CA386A
triadic
#CA38B3 #B3CA38 #38B3CA
tetradic
#CA38B3 #CA9838 #38CA4F #386ACA
square
#CA38B3 #CA9838 #38CA4F #386ACA
split-complementary
#CA38B3 #6ACA38 #38CA98
monochromatic
#6B1D5F #9B2989 #CA38B3 #D768C5 #E499D8

Accessibility & contrast

On white

4.44
#CA38B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#CA38B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38B3
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38B3#FFFFFF#000000##000000
##CA38B31.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#386AB6
Deuteranopia (green-blind)
#6B7FB0
Tritanopia (blue-blind)
#D44472
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ca38b3;
/* rgb */ color: rgb(202, 56, 179);
/* oklch */ color: oklch(60.1% 0.222 335.2);
Tailwind
colors: {
  custom: {
    50: '#de7cca',
    500: '#ca38b3',
    950: '#000000',
  },
}
SCSS
$custom: #ca38b3;
$custom-light: #de7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38b3",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 309.452,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60058,
    "c": 0.22187,
    "h": 335.2
  },
  "luminance": 0.1864
}

Semantic roles & 50–950 ramp

primary
#CA38B3
secondary
#8ECF99
accent
#E15F47
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA38B3

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

Preview Lab → · Contrast checker → · Palette generator →

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