#CA7AF2#CA7AF2

#CA7AF2 is a light, vivid purple. Relative luminance 0.329; OKLCH L 71.2% C 0.185 H 313.4°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#CA7AF2
RGBrgb(202, 122, 242)
HSLhsl(280, 82%, 71%)
HSVhsv(280, 50%, 95%)
CMYKcmyk(16.5%, 49.6%, 0%, 5.1%)
CIE-LABlab(64.07, 51.21, -48.13)
CIE-LCHlch(64.07, 70.28, 316.78°)
OKLaboklab(71.15% 0.1267 -0.1341)
OKLCHoklch(71.15% 0.185 313.4)
XYZxyz(47.3410, 32.8876, 87.8413)
Luminance0.3289 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7AF2 #A2F27A
analogous
#8E7AF2 #CA7AF2 #F27ADE
triadic
#CA7AF2 #F2CA7A #7AF2CA
tetradic
#CA7AF2 #F28E7A #A2F27A #7ADEF2
square
#CA7AF2 #F28E7A #A2F27A #7ADEF2
split-complementary
#CA7AF2 #DEF27A #7AF28E
monochromatic
#9A16DC #B442ED #CA7AF2 #E0B2F7 #F4E3FC

Accessibility & contrast

On white

2.77
#CA7AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#CA7AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7AF2
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7AF2#FFFFFF#000000##000000
##CA7AF21.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E97F6
Deuteranopia (green-blind)
#769DEF
Tritanopia (blue-blind)
#C68DAB
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ca7af2;
/* rgb */ color: rgb(202, 122, 242);
/* oklch */ color: oklch(71.2% 0.185 313.4);
Tailwind
colors: {
  custom: {
    50: '#dca3f7',
    500: '#ca7af2',
    950: '#000000',
  },
}
SCSS
$custom: #ca7af2;
$custom-light: #dca3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7af2",
  "rgb": {
    "r": 202,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 280,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71154,
    "c": 0.18452,
    "h": 313.4
  },
  "luminance": 0.32886
}

Semantic roles & 50–950 ramp

primary
#CA7AF2
secondary
#DFF3D4
accent
#DF074F
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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