#CA40C8#CA40C8

#CA40C8 is a mid, highly saturated purple. Relative luminance 0.204; OKLCH L 61.9% C 0.228 H 328.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#CA40C8
RGBrgb(202, 64, 200)
HSLhsl(301, 57%, 52%)
HSVhsv(301, 68%, 79%)
CMYKcmyk(0%, 68.3%, 1%, 20.8%)
CIE-LABlab(52.28, 69.49, -43.12)
CIE-LCHlch(52.28, 81.79, 328.18°)
OKLaboklab(61.85% 0.1947 -0.1192)
OKLCHoklch(61.85% 0.228 328.5)
XYZxyz(36.6154, 20.3961, 56.6407)
Luminance0.2039 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40C8 #40CA42
analogous
#8740CA #CA40C8 #CA4083
triadic
#CA40C8 #C8CA40 #40C8CA
tetradic
#CA40C8 #CA8740 #40CA42 #4083CA
square
#CA40C8 #CA8740 #40CA42 #4083CA
split-complementary
#CA40C8 #83CA40 #40CA87
monochromatic
#701F6F #A02C9F #CA40C8 #D770D6 #E5A0E4

Accessibility & contrast

On white

4.13
#CA40C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#CA40C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40C8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40C8#FFFFFF#000000##000000
##CA40C81.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C71CC
Deuteranopia (green-blind)
#6583C4
Tritanopia (blue-blind)
#D1537F
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ca40c8;
/* rgb */ color: rgb(202, 64, 200);
/* oklch */ color: oklch(61.9% 0.228 328.5);
Tailwind
colors: {
  custom: {
    50: '#de81d9',
    500: '#ca40c8',
    950: '#000000',
  },
}
SCSS
$custom: #ca40c8;
$custom-light: #de81d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40c8",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 300.87,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61852,
    "c": 0.22825,
    "h": 328.5
  },
  "luminance": 0.20393
}

Semantic roles & 50–950 ramp

primary
#CA40C8
secondary
#95D196
accent
#E04A48
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CA40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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