#CA38CC#CA38CC

#CA38CC is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.4% C 0.240 H 327.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#CA38CC
RGBrgb(202, 56, 204)
HSLhsl(299, 59%, 51%)
HSVhsv(299, 73%, 80%)
CMYKcmyk(1%, 72.5%, 0%, 20%)
CIE-LABlab(51.55, 72.83, -46.58)
CIE-LCHlch(51.55, 86.45, 327.40°)
OKLaboklab(61.4% 0.2023 -0.1292)
OKLCHoklch(61.4% 0.24 327.4)
XYZxyz(36.6698, 19.7471, 58.9952)
Luminance0.1974 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38CC #3ACC38
analogous
#8038CC #CA38CC #CC3884
triadic
#CA38CC #CCCA38 #38CCCA
tetradic
#CA38CC #CC8038 #3ACC38 #3884CC
square
#CA38CC #CC8038 #3ACC38 #3884CC
split-complementary
#CA38CC #84CC38 #38CC80
monochromatic
#6C1C6E #9D299E #CA38CC #D769D8 #E499E5

Accessibility & contrast

On white

4.24
#CA38CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#CA38CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38CC
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38CC#FFFFFF#000000##000000
##CA38CC1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#166FD0
Deuteranopia (green-blind)
#5F81C8
Tritanopia (blue-blind)
#D0507F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ca38cc;
/* rgb */ color: rgb(202, 56, 204);
/* oklch */ color: oklch(61.4% 0.240 327.4);
Tailwind
colors: {
  custom: {
    50: '#de7ddc',
    500: '#ca38cc',
    950: '#000000',
  },
}
SCSS
$custom: #ca38cc;
$custom-light: #de7ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38cc",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 299.189,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.61396,
    "c": 0.24003,
    "h": 327.4
  },
  "luminance": 0.19745
}

Semantic roles & 50–950 ramp

primary
#CA38CC
secondary
#90D18F
accent
#E24548
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CA38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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