#CA7BE2#CA7BE2

#CA7BE2 is a light, vivid purple. Relative luminance 0.322; OKLCH L 70.5% C 0.166 H 318.0°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#CA7BE2
RGBrgb(202, 123, 226)
HSLhsl(286, 64%, 68%)
HSVhsv(286, 46%, 89%)
CMYKcmyk(10.6%, 45.6%, 0%, 11.4%)
CIE-LABlab(63.52, 47.42, -40.13)
CIE-LCHlch(63.52, 62.12, 319.76°)
OKLaboklab(70.5% 0.1232 -0.111)
OKLCHoklch(70.5% 0.166 318)
XYZxyz(45.1657, 32.2149, 75.7757)
Luminance0.3221 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7BE2 #93E27B
analogous
#967BE2 #CA7BE2 #E27BC6
triadic
#CA7BE2 #E2CA7B #7BE2CA
tetradic
#CA7BE2 #E2967B #93E27B #7BC6E2
square
#CA7BE2 #E2967B #93E27B #7BC6E2
split-complementary
#CA7BE2 #C6E27B #7BE296
monochromatic
#9829BA #B649D7 #CA7BE2 #DEADED #F2DFF8

Accessibility & contrast

On white

2.82
#CA7BE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.44
#CA7BE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7BE2
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7BE2#FFFFFF#000000##000000
##CA7BE21.002.827.447.44
#FFFFFF2.821.0021.0021.00
#0000007.4421.001.001.00
##0000007.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6995E6
Deuteranopia (green-blind)
#7F9CDF
Tritanopia (blue-blind)
#CA89A4
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ca7be2;
/* rgb */ color: rgb(202, 123, 226);
/* oklch */ color: oklch(70.5% 0.166 318.0);
Tailwind
colors: {
  custom: {
    50: '#dca3eb',
    500: '#ca7be2',
    950: '#000000',
  },
}
SCSS
$custom: #ca7be2;
$custom-light: #dca3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7be2",
  "rgb": {
    "r": 202,
    "g": 123,
    "b": 226
  },
  "hsl": {
    "h": 286.019,
    "s": 63.975,
    "l": 68.431
  },
  "oklch": {
    "l": 0.705,
    "c": 0.16583,
    "h": 318
  },
  "luminance": 0.32213
}

Semantic roles & 50–950 ramp

primary
#CA7BE2
secondary
#D4ECCD
accent
#CC1A43
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CA7BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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