#CA7DEF#CA7DEF

#CA7DEF is a light, vivid purple. Relative luminance 0.335; OKLCH L 71.4% C 0.176 H 313.9°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#CA7DEF
RGBrgb(202, 125, 239)
HSLhsl(281, 78%, 71%)
HSVhsv(281, 48%, 94%)
CMYKcmyk(15.5%, 47.7%, 0%, 6.3%)
CIE-LABlab(64.53, 49.03, -45.75)
CIE-LCHlch(64.53, 67.06, 316.98°)
OKLaboklab(71.45% 0.1223 -0.1272)
OKLCHoklch(71.45% 0.176 313.9)
XYZxyz(47.2682, 33.4570, 85.6125)
Luminance0.3346 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7DEF #A2EF7D
analogous
#917DEF #CA7DEF #EF7DDB
triadic
#CA7DEF #EFCA7D #7DEFCA
tetradic
#CA7DEF #EF917D #A2EF7D #7DDBEF
square
#CA7DEF #EF917D #A2EF7D #7DDBEF
split-complementary
#CA7DEF #DBEF7D #7DEF91
monochromatic
#9A1AD7 #B447E8 #CA7DEF #E0B3F6 #F4E4FC

Accessibility & contrast

On white

2.73
#CA7DEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#CA7DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7DEF
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7DEF#FFFFFF#000000##000000
##CA7DEF1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6598F3
Deuteranopia (green-blind)
#7B9EEC
Tritanopia (blue-blind)
#C78EAB
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca7def;
/* rgb */ color: rgb(202, 125, 239);
/* oklch */ color: oklch(71.4% 0.176 313.9);
Tailwind
colors: {
  custom: {
    50: '#dca5f4',
    500: '#ca7def',
    950: '#000000',
  },
}
SCSS
$custom: #ca7def;
$custom-light: #dca5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7def",
  "rgb": {
    "r": 202,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 280.526,
    "s": 78.082,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71448,
    "c": 0.17649,
    "h": 313.9
  },
  "luminance": 0.33456
}

Semantic roles & 50–950 ramp

primary
#CA7DEF
secondary
#DFF3D5
accent
#DA0B4E
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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