#CA38B8#CA38B8

#CA38B8 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.3% C 0.225 H 333.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#CA38B8
RGBrgb(202, 56, 184)
HSLhsl(307, 58%, 51%)
HSVhsv(307, 72%, 79%)
CMYKcmyk(0%, 72.3%, 8.9%, 20.8%)
CIE-LABlab(50.51, 69.72, -36.65)
CIE-LCHlch(50.51, 78.77, 332.27°)
OKLaboklab(60.31% 0.2018 -0.1005)
OKLCHoklch(60.31% 0.225 333.5)
XYZxyz(34.4233, 18.8485, 47.1632)
Luminance0.1885 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38B8 #38CA4A
analogous
#9338CA #CA38B8 #CA386F
triadic
#CA38B8 #B8CA38 #38B8CA
tetradic
#CA38B8 #CA9338 #38CA4A #386FCA
square
#CA38B8 #CA9338 #38CA4A #386FCA
split-complementary
#CA38B8 #6FCA38 #38CA93
monochromatic
#6B1D61 #9B298D #CA38B8 #D768C9 #E499DA

Accessibility & contrast

On white

4.40
#CA38B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#CA38B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38B8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38B8#FFFFFF#000000##000000
##CA38B81.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#336BBC
Deuteranopia (green-blind)
#6980B4
Tritanopia (blue-blind)
#D34674
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ca38b8;
/* rgb */ color: rgb(202, 56, 184);
/* oklch */ color: oklch(60.3% 0.225 333.5);
Tailwind
colors: {
  custom: {
    50: '#de7cce',
    500: '#ca38b8',
    950: '#000000',
  },
}
SCSS
$custom: #ca38b8;
$custom-light: #de7cce;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38b8",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 307.397,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60313,
    "c": 0.22538,
    "h": 333.5
  },
  "luminance": 0.18846
}

Semantic roles & 50–950 ramp

primary
#CA38B8
secondary
#8ECF96
accent
#E15A47
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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