#CA38C8#CA38C8

#CA38C8 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.2% C 0.237 H 328.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CA38C8
RGBrgb(202, 56, 200)
HSLhsl(301, 58%, 51%)
HSVhsv(301, 72%, 79%)
CMYKcmyk(0%, 72.3%, 1%, 20.8%)
CIE-LABlab(51.33, 72.19, -44.63)
CIE-LCHlch(51.33, 84.87, 328.28°)
OKLaboklab(61.17% 0.2023 -0.1235)
OKLCHoklch(61.17% 0.237 328.6)
XYZxyz(36.1962, 19.5577, 56.5010)
Luminance0.1956 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA38C8 #38CA3A
analogous
#8338CA #CA38C8 #CA387F
triadic
#CA38C8 #C8CA38 #38C8CA
tetradic
#CA38C8 #CA8338 #38CA3A #387FCA
square
#CA38C8 #CA8338 #38CA3A #387FCA
split-complementary
#CA38C8 #7FCA38 #38CA83
monochromatic
#6B1D6A #9B299A #CA38C8 #D768D5 #E499E3

Accessibility & contrast

On white

4.28
#CA38C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#CA38C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA38C8
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA38C8#FFFFFF#000000##000000
##CA38C81.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E6ECC
Deuteranopia (green-blind)
#6181C4
Tritanopia (blue-blind)
#D14E7D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ca38c8;
/* rgb */ color: rgb(202, 56, 200);
/* oklch */ color: oklch(61.2% 0.237 328.6);
Tailwind
colors: {
  custom: {
    50: '#de7dd9',
    500: '#ca38c8',
    950: '#000000',
  },
}
SCSS
$custom: #ca38c8;
$custom-light: #de7dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca38c8",
  "rgb": {
    "r": 202,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 300.822,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.61171,
    "c": 0.23702,
    "h": 328.6
  },
  "luminance": 0.19555
}

Semantic roles & 50–950 ramp

primary
#CA38C8
secondary
#8ECF8F
accent
#E14947
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CA38C8

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

Preview Lab → · Contrast checker → · Palette generator →

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