#CA7FEF#CA7FEF

#CA7FEF is a light, vivid purple. Relative luminance 0.340; OKLCH L 71.8% C 0.173 H 313.6°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#CA7FEF
RGBrgb(202, 127, 239)
HSLhsl(280, 78%, 72%)
HSVhsv(280, 47%, 94%)
CMYKcmyk(15.5%, 46.9%, 0%, 6.3%)
CIE-LABlab(64.94, 47.98, -45.11)
CIE-LCHlch(64.94, 65.86, 316.77°)
OKLaboklab(71.75% 0.1196 -0.1254)
OKLCHoklch(71.75% 0.173 313.6)
XYZxyz(47.5239, 33.9684, 85.6977)
Luminance0.3397 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7FEF #A4EF7F
analogous
#927FEF #CA7FEF #EF7FDC
triadic
#CA7FEF #EFCA7F #7FEFCA
tetradic
#CA7FEF #EF927F #A4EF7F #7FDCEF
square
#CA7FEF #EF927F #A4EF7F #7FDCEF
split-complementary
#CA7FEF #DCEF7F #7FEF92
monochromatic
#9A1BD9 #B349E8 #CA7FEF #E1B5F6 #F4E4FC

Accessibility & contrast

On white

2.69
#CA7FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#CA7FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7FEF
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7FEF#FFFFFF#000000##000000
##CA7FEF1.002.697.797.79
#FFFFFF2.691.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6799F3
Deuteranopia (green-blind)
#7C9FEC
Tritanopia (blue-blind)
#C790AC
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ca7fef;
/* rgb */ color: rgb(202, 127, 239);
/* oklch */ color: oklch(71.8% 0.173 313.6);
Tailwind
colors: {
  custom: {
    50: '#dca6f4',
    500: '#ca7fef',
    950: '#000000',
  },
}
SCSS
$custom: #ca7fef;
$custom-light: #dca6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7fef",
  "rgb": {
    "r": 202,
    "g": 127,
    "b": 239
  },
  "hsl": {
    "h": 280.179,
    "s": 77.778,
    "l": 71.765
  },
  "oklch": {
    "l": 0.71752,
    "c": 0.17327,
    "h": 313.6
  },
  "luminance": 0.33967
}

Semantic roles & 50–950 ramp

primary
#CA7FEF
secondary
#E0F3D7
accent
#DA0B50
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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