#CA38CD#CA38CD

#CA38CD is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.5% C 0.241 H 327.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#CA38CD
RGBrgb(202, 56, 205)
HSLhsl(299, 60%, 51%)
HSVhsv(299, 73%, 80%)
CMYKcmyk(1.5%, 72.7%, 0%, 19.6%)
CIE-LABlab(51.60, 72.99, -47.07)
CIE-LCHlch(51.60, 86.85, 327.18°)
OKLaboklab(61.45% 0.2023 -0.1306)
OKLCHoklch(61.45% 0.241 327.1)
XYZxyz(36.7902, 19.7953, 59.6289)
Luminance0.1979 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38CD #3BCD38
analogous
#7F38CD #CA38CD #CD3885
triadic
#CA38CD #CDCA38 #38CDCA
tetradic
#CA38CD #CD7F38 #3BCD38 #3885CD
square
#CA38CD #CD7F38 #3BCD38 #3885CD
split-complementary
#CA38CD #85CD38 #38CD7F
monochromatic
#6D1C6F #9D28A0 #CA38CD #D769D9 #E49AE6

Accessibility & contrast

On white

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

On black

4.96
#CA38CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38CD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38CD#FFFFFF#000000##000000
##CA38CD1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#136FD1
Deuteranopia (green-blind)
#5E81C9
Tritanopia (blue-blind)
#D05080
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ca38cd;
/* rgb */ color: rgb(202, 56, 205);
/* oklch */ color: oklch(61.5% 0.241 327.1);
Tailwind
colors: {
  custom: {
    50: '#de7ddd',
    500: '#ca38cd',
    950: '#000000',
  },
}
SCSS
$custom: #ca38cd;
$custom-light: #de7ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38cd",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 298.792,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.61453,
    "c": 0.24077,
    "h": 327.1
  },
  "luminance": 0.19793
}

Semantic roles & 50–950 ramp

primary
#CA38CD
secondary
#91D18F
accent
#E34548
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CA38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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