#CA40BF#CA40BF

#CA40BF is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.4% C 0.221 H 331.3°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#CA40BF
RGBrgb(202, 64, 191)
HSLhsl(305, 57%, 52%)
HSVhsv(305, 68%, 79%)
CMYKcmyk(0%, 68.3%, 5.4%, 20.8%)
CIE-LABlab(51.82, 68.06, -38.65)
CIE-LCHlch(51.82, 78.27, 330.41°)
OKLaboklab(61.37% 0.1942 -0.1063)
OKLCHoklch(61.37% 0.221 331.3)
XYZxyz(35.5944, 19.9877, 51.2634)
Luminance0.1998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40BF #40CA4B
analogous
#9040CA #CA40BF #CA407A
triadic
#CA40BF #BFCA40 #40BFCA
tetradic
#CA40BF #CA9040 #40CA4B #407ACA
square
#CA40BF #CA9040 #40CA4B #407ACA
split-complementary
#CA40BF #7ACA40 #40CA90
monochromatic
#701F6A #A02C97 #CA40BF #D770CF #E5A0DF

Accessibility & contrast

On white

4.20
#CA40BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#CA40BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40BF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40BF#FFFFFF#000000##000000
##CA40BF1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#366FC3
Deuteranopia (green-blind)
#6982BC
Tritanopia (blue-blind)
#D24F7B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca40bf;
/* rgb */ color: rgb(202, 64, 191);
/* oklch */ color: oklch(61.4% 0.221 331.3);
Tailwind
colors: {
  custom: {
    50: '#de80d3',
    500: '#ca40bf',
    950: '#000000',
  },
}
SCSS
$custom: #ca40bf;
$custom-light: #de80d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40bf",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 304.783,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.61372,
    "c": 0.22141,
    "h": 331.3
  },
  "luminance": 0.19985
}

Semantic roles & 50–950 ramp

primary
#CA40BF
secondary
#95D19A
accent
#E05448
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CA40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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