#CA27B6#CA27B6

#CA27B6 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 59.0% C 0.240 H 334.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#CA27B6
RGBrgb(202, 39, 182)
HSLhsl(307, 68%, 47%)
HSVhsv(307, 81%, 79%)
CMYKcmyk(0%, 80.7%, 9.9%, 20.8%)
CIE-LABlab(48.75, 74.21, -38.26)
CIE-LCHlch(48.75, 83.49, 332.72°)
OKLaboklab(59.01% 0.2157 -0.105)
OKLCHoklch(59.01% 0.24 334)
XYZxyz(33.5265, 17.3880, 45.8374)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA27B6 #27CA3B
analogous
#8D27CA #CA27B6 #CA2765
triadic
#CA27B6 #B6CA27 #27B6CA
tetradic
#CA27B6 #CA8D27 #27CA3B #2765CA
square
#CA27B6 #CA8D27 #27CA3B #2765CA
split-complementary
#CA27B6 #65CA27 #27CA8D
monochromatic
#63135A #971D88 #CA27B6 #DD51CC #E784DB

Accessibility & contrast

On white

4.69
#CA27B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#CA27B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA27B6
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA27B6#FFFFFF#000000##FFFFFF
##CA27B61.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2165BA
Deuteranopia (green-blind)
#647CB2
Tritanopia (blue-blind)
#D43A6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ca27b6;
/* rgb */ color: rgb(202, 39, 182);
/* oklch */ color: oklch(59.0% 0.240 334.0);
Tailwind
colors: {
  custom: {
    50: '#df76cc',
    500: '#ca27b6',
    950: '#000000',
  },
}
SCSS
$custom: #ca27b6;
$custom-light: #df76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca27b6",
  "rgb": {
    "r": 202,
    "g": 39,
    "b": 182
  },
  "hsl": {
    "h": 307.362,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.59015,
    "c": 0.23988,
    "h": 334
  },
  "luminance": 0.17385
}

Semantic roles & 50–950 ramp

primary
#CA27B6
secondary
#7CD087
accent
#EB533D
background
#FEF7FC
surface
#FCEEF9
border
#D5C9D2
text
#160A13
muted
#847C82

Preview Lab

Preview with #CA27B6

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

Preview Lab → · Contrast checker → · Palette generator →

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