#CA7CEF#CA7CEF

#CA7CEF is a light, vivid purple. Relative luminance 0.332; OKLCH L 71.3% C 0.178 H 314.0°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#CA7CEF
RGBrgb(202, 124, 239)
HSLhsl(281, 78%, 71%)
HSVhsv(281, 48%, 94%)
CMYKcmyk(15.5%, 48.1%, 0%, 6.3%)
CIE-LABlab(64.33, 49.55, -46.07)
CIE-LCHlch(64.33, 67.66, 317.08°)
OKLaboklab(71.3% 0.1237 -0.1282)
OKLCHoklch(71.3% 0.178 314)
XYZxyz(47.1422, 33.2050, 85.5705)
Luminance0.3320 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7CEF #A1EF7C
analogous
#907CEF #CA7CEF #EF7CDA
triadic
#CA7CEF #EFCA7C #7CEFCA
tetradic
#CA7CEF #EF907C #A1EF7C #7CDAEF
square
#CA7CEF #EF907C #A1EF7C #7CDAEF
split-complementary
#CA7CEF #DAEF7C #7CEF90
monochromatic
#9A1AD6 #B445E8 #CA7CEF #E0B3F6 #F4E4FC

Accessibility & contrast

On white

2.75
#CA7CEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#CA7CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7CEF
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7CEF#FFFFFF#000000##000000
##CA7CEF1.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6398F3
Deuteranopia (green-blind)
#7A9EEC
Tritanopia (blue-blind)
#C78EAA
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca7cef;
/* rgb */ color: rgb(202, 124, 239);
/* oklch */ color: oklch(71.3% 0.178 314.0);
Tailwind
colors: {
  custom: {
    50: '#dca4f4',
    500: '#ca7cef',
    950: '#000000',
  },
}
SCSS
$custom: #ca7cef;
$custom-light: #dca4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7cef",
  "rgb": {
    "r": 202,
    "g": 124,
    "b": 239
  },
  "hsl": {
    "h": 280.696,
    "s": 78.231,
    "l": 71.176
  },
  "oklch": {
    "l": 0.71297,
    "c": 0.1781,
    "h": 314
  },
  "luminance": 0.33204
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA7CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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