#CA40B8#CA40B8

#CA40B8 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.0% C 0.216 H 333.6°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CA40B8
RGBrgb(202, 64, 184)
HSLhsl(308, 57%, 52%)
HSVhsv(308, 68%, 79%)
CMYKcmyk(0%, 68.3%, 8.9%, 20.8%)
CIE-LABlab(51.48, 66.98, -35.13)
CIE-LCHlch(51.48, 75.63, 332.32°)
OKLaboklab(61.01% 0.1937 -0.0961)
OKLCHoklch(61.01% 0.216 333.6)
XYZxyz(34.8425, 19.6869, 47.3030)
Luminance0.1968 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40B8 #40CA52
analogous
#9740CA #CA40B8 #CA4073
triadic
#CA40B8 #B8CA40 #40B8CA
tetradic
#CA40B8 #CA9740 #40CA52 #4073CA
square
#CA40B8 #CA9740 #40CA52 #4073CA
split-complementary
#CA40B8 #73CA40 #40CA97
monochromatic
#701F66 #A02C91 #CA40B8 #D770CA #E5A0DC

Accessibility & contrast

On white

4.25
#CA40B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#CA40B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40B8
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40B8#FFFFFF#000000##000000
##CA40B81.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6EBB
Deuteranopia (green-blind)
#6D82B5
Tritanopia (blue-blind)
#D34C77
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ca40b8;
/* rgb */ color: rgb(202, 64, 184);
/* oklch */ color: oklch(61.0% 0.216 333.6);
Tailwind
colors: {
  custom: {
    50: '#de80cd',
    500: '#ca40b8',
    950: '#000000',
  },
}
SCSS
$custom: #ca40b8;
$custom-light: #de80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40b8",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 307.826,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61014,
    "c": 0.21624,
    "h": 333.6
  },
  "luminance": 0.19684
}

Semantic roles & 50–950 ramp

primary
#CA40B8
secondary
#95D19D
accent
#E05C48
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA40B8

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

Preview Lab → · Contrast checker → · Palette generator →

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