#CA38B5#CA38B5

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

Color values

HEX#CA38B5
RGBrgb(202, 56, 181)
HSLhsl(309, 58%, 51%)
HSVhsv(309, 72%, 79%)
CMYKcmyk(0%, 72.3%, 10.4%, 20.8%)
CIE-LABlab(50.36, 69.28, -35.13)
CIE-LCHlch(50.36, 77.68, 333.11°)
OKLaboklab(60.16% 0.2015 -0.0961)
OKLCHoklch(60.16% 0.223 334.5)
XYZxyz(34.1121, 18.7241, 45.5246)
Luminance0.1872 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38B5 #38CA4D
analogous
#9638CA #CA38B5 #CA386C
triadic
#CA38B5 #B5CA38 #38B5CA
tetradic
#CA38B5 #CA9638 #38CA4D #386CCA
square
#CA38B5 #CA9638 #38CA4D #386CCA
split-complementary
#CA38B5 #6CCA38 #38CA96
monochromatic
#6B1D60 #9B298B #CA38B5 #D768C7 #E499D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CA38B5#FFFFFF#000000##000000
##CA38B51.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)
#366AB8
Deuteranopia (green-blind)
#6B7FB1
Tritanopia (blue-blind)
#D44573
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ca38b5;
/* rgb */ color: rgb(202, 56, 181);
/* oklch */ color: oklch(60.2% 0.223 334.5);
Tailwind
colors: {
  custom: {
    50: '#de7ccb',
    500: '#ca38b5',
    950: '#000000',
  },
}
SCSS
$custom: #ca38b5;
$custom-light: #de7ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38b5",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 308.63,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.60159,
    "c": 0.22327,
    "h": 334.5
  },
  "luminance": 0.18721
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA38B5

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

Preview Lab → · Contrast checker → · Palette generator →

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