#CA7FDF#CA7FDF

#CA7FDF is a light, vivid purple. Relative luminance 0.331; OKLCH L 71.0% C 0.156 H 318.6°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#CA7FDF
RGBrgb(202, 127, 223)
HSLhsl(287, 60%, 69%)
HSVhsv(287, 43%, 87%)
CMYKcmyk(9.4%, 43%, 0%, 12.5%)
CIE-LABlab(64.21, 44.71, -37.38)
CIE-LCHlch(64.21, 58.28, 320.10°)
OKLaboklab(70.97% 0.117 -0.1031)
OKLCHoklch(70.97% 0.156 318.6)
XYZxyz(45.2640, 33.0645, 73.7954)
Luminance0.3306 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7FDF #94DF7F
analogous
#9A7FDF #CA7FDF #DF7FC4
triadic
#CA7FDF #DFCA7F #7FDFCA
tetradic
#CA7FDF #DF9A7F #94DF7F #7FC4DF
square
#CA7FDF #DF9A7F #94DF7F #7FC4DF
split-complementary
#CA7FDF #C4DF7F #7FDF9A
monochromatic
#982EB6 #B64ED3 #CA7FDF #DEB0EB #F3E1F7

Accessibility & contrast

On white

2.76
#CA7FDF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#CA7FDF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7FDF
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7FDF#FFFFFF#000000##000000
##CA7FDF1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7097E2
Deuteranopia (green-blind)
#849EDC
Tritanopia (blue-blind)
#CA8BA5
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca7fdf;
/* rgb */ color: rgb(202, 127, 223);
/* oklch */ color: oklch(71.0% 0.156 318.6);
Tailwind
colors: {
  custom: {
    50: '#dca6e9',
    500: '#ca7fdf',
    950: '#000000',
  },
}
SCSS
$custom: #ca7fdf;
$custom-light: #dca6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7fdf",
  "rgb": {
    "r": 202,
    "g": 127,
    "b": 223
  },
  "hsl": {
    "h": 286.875,
    "s": 60,
    "l": 68.627
  },
  "oklch": {
    "l": 0.70974,
    "c": 0.15597,
    "h": 318.6
  },
  "luminance": 0.33063
}

Semantic roles & 50–950 ramp

primary
#CA7FDF
secondary
#D5EBCF
accent
#C81E43
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CA7FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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