#CA7FEC#CA7FEC

#CA7FEC is a light, vivid purple. Relative luminance 0.338; OKLCH L 71.6% C 0.170 H 314.5°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#CA7FEC
RGBrgb(202, 127, 236)
HSLhsl(281, 74%, 71%)
HSVhsv(281, 46%, 93%)
CMYKcmyk(14.4%, 46.2%, 0%, 7.5%)
CIE-LABlab(64.80, 47.36, -43.67)
CIE-LCHlch(64.80, 64.42, 317.32°)
OKLaboklab(71.6% 0.1192 -0.1212)
OKLCHoklch(71.6% 0.17 314.5)
XYZxyz(47.0844, 33.7926, 83.3829)
Luminance0.3379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7FEC #A1EC7F
analogous
#937FEC #CA7FEC #EC7FD8
triadic
#CA7FEC #ECCA7F #7FECCA
tetradic
#CA7FEC #EC937F #A1EC7F #7FD8EC
square
#CA7FEC #EC937F #A1EC7F #7FD8EC
split-complementary
#CA7FEC #D8EC7F #7FEC93
monochromatic
#9A1FD2 #B44AE4 #CA7FEC #E0B4F4 #F4E4FB

Accessibility & contrast

On white

2.71
#CA7FEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#CA7FEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7FEC
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7FEC#FFFFFF#000000##000000
##CA7FEC1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6999F0
Deuteranopia (green-blind)
#7E9FE9
Tritanopia (blue-blind)
#C88FAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7fec;
/* rgb */ color: rgb(202, 127, 236);
/* oklch */ color: oklch(71.6% 0.170 314.5);
Tailwind
colors: {
  custom: {
    50: '#dca6f2',
    500: '#ca7fec',
    950: '#000000',
  },
}
SCSS
$custom: #ca7fec;
$custom-light: #dca6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7fec",
  "rgb": {
    "r": 202,
    "g": 127,
    "b": 236
  },
  "hsl": {
    "h": 281.284,
    "s": 74.15,
    "l": 71.176
  },
  "oklch": {
    "l": 0.71602,
    "c": 0.16999,
    "h": 314.5
  },
  "luminance": 0.33791
}

Semantic roles & 50–950 ramp

primary
#CA7FEC
secondary
#DEF2D5
accent
#D60F4D
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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