#CA38B7#CA38B7

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

Color values

HEX#CA38B7
RGBrgb(202, 56, 183)
HSLhsl(308, 58%, 51%)
HSVhsv(308, 72%, 79%)
CMYKcmyk(0%, 72.3%, 9.4%, 20.8%)
CIE-LABlab(50.46, 69.58, -36.15)
CIE-LCHlch(50.46, 78.41, 332.55°)
OKLaboklab(60.26% 0.2017 -0.099)
OKLCHoklch(60.26% 0.225 333.9)
XYZxyz(34.3188, 18.8067, 46.6131)
Luminance0.1880 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38B7 #38CA4B
analogous
#9438CA #CA38B7 #CA386E
triadic
#CA38B7 #B7CA38 #38B7CA
tetradic
#CA38B7 #CA9438 #38CA4B #386ECA
square
#CA38B7 #CA9438 #38CA4B #386ECA
split-complementary
#CA38B7 #6ECA38 #38CA94
monochromatic
#6B1D61 #9B298D #CA38B7 #D768C8 #E499DA

Accessibility & contrast

On white

4.41
#CA38B7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#CA38B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38B7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38B7#FFFFFF#000000##000000
##CA38B71.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#346BBA
Deuteranopia (green-blind)
#6A80B3
Tritanopia (blue-blind)
#D34674
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ca38b7;
/* rgb */ color: rgb(202, 56, 183);
/* oklch */ color: oklch(60.3% 0.225 333.9);
Tailwind
colors: {
  custom: {
    50: '#de7ccd',
    500: '#ca38b7',
    950: '#000000',
  },
}
SCSS
$custom: #ca38b7;
$custom-light: #de7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38b7",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 307.808,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60261,
    "c": 0.22467,
    "h": 333.9
  },
  "luminance": 0.18804
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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