#CA7FEE#CA7FEE

#CA7FEE is a light, vivid purple. Relative luminance 0.339; OKLCH L 71.7% C 0.172 H 313.9°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#CA7FEE
RGBrgb(202, 127, 238)
HSLhsl(281, 77%, 72%)
HSVhsv(281, 47%, 93%)
CMYKcmyk(15.1%, 46.6%, 0%, 6.7%)
CIE-LABlab(64.89, 47.77, -44.63)
CIE-LCHlch(64.89, 65.38, 316.95°)
OKLaboklab(71.7% 0.1194 -0.124)
OKLCHoklch(71.7% 0.172 313.9)
XYZxyz(47.3766, 33.9095, 84.9218)
Luminance0.3391 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7FEE #A3EE7F
analogous
#937FEE #CA7FEE #EE7FDA
triadic
#CA7FEE #EECA7F #7FEECA
tetradic
#CA7FEE #EE937F #A3EE7F #7FDAEE
square
#CA7FEE #EE937F #A3EE7F #7FDAEE
split-complementary
#CA7FEE #DAEE7F #7FEE93
monochromatic
#9A1CD6 #B449E7 #CA7FEE #E0B5F5 #F4E4FB

Accessibility & contrast

On white

2.70
#CA7FEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#CA7FEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7FEE
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7FEE#FFFFFF#000000##000000
##CA7FEE1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6899F2
Deuteranopia (green-blind)
#7D9FEB
Tritanopia (blue-blind)
#C790AB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7fee;
/* rgb */ color: rgb(202, 127, 238);
/* oklch */ color: oklch(71.7% 0.172 313.9);
Tailwind
colors: {
  custom: {
    50: '#dca6f4',
    500: '#ca7fee',
    950: '#000000',
  },
}
SCSS
$custom: #ca7fee;
$custom-light: #dca6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7fee",
  "rgb": {
    "r": 202,
    "g": 127,
    "b": 238
  },
  "hsl": {
    "h": 280.541,
    "s": 76.552,
    "l": 71.569
  },
  "oklch": {
    "l": 0.71702,
    "c": 0.17217,
    "h": 313.9
  },
  "luminance": 0.33908
}

Semantic roles & 50–950 ramp

primary
#CA7FEE
secondary
#DFF3D6
accent
#D90D4F
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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