#CA7DF2#CA7DF2

#CA7DF2 is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.6% C 0.180 H 313.0°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#CA7DF2
RGBrgb(202, 125, 242)
HSLhsl(279, 82%, 72%)
HSVhsv(279, 48%, 95%)
CMYKcmyk(16.5%, 48.3%, 0%, 5.1%)
CIE-LABlab(64.67, 49.66, -47.18)
CIE-LCHlch(64.67, 68.50, 316.46°)
OKLaboklab(71.6% 0.1227 -0.1314)
OKLCHoklch(71.6% 0.18 313)
XYZxyz(47.7150, 33.6357, 87.9660)
Luminance0.3363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7DF2 #A5F27D
analogous
#907DF2 #CA7DF2 #F27DE0
triadic
#CA7DF2 #F2CA7D #7DF2CA
tetradic
#CA7DF2 #F2907D #A5F27D #7DE0F2
square
#CA7DF2 #F2907D #A5F27D #7DE0F2
split-complementary
#CA7DF2 #E0F27D #7DF290
monochromatic
#9A16DE #B345EC #CA7DF2 #E1B5F8 #F4E3FC

Accessibility & contrast

On white

2.72
#CA7DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.73
#CA7DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7DF2
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7DF2#FFFFFF#000000##000000
##CA7DF21.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6399F6
Deuteranopia (green-blind)
#799FEF
Tritanopia (blue-blind)
#C68FAC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7df2;
/* rgb */ color: rgb(202, 125, 242);
/* oklch */ color: oklch(71.6% 0.180 313.0);
Tailwind
colors: {
  custom: {
    50: '#dca5f7',
    500: '#ca7df2',
    950: '#000000',
  },
}
SCSS
$custom: #ca7df2;
$custom-light: #dca5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7df2",
  "rgb": {
    "r": 202,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 279.487,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.71601,
    "c": 0.17976,
    "h": 313
  },
  "luminance": 0.33635
}

Semantic roles & 50–950 ramp

primary
#CA7DF2
secondary
#E1F4D7
accent
#DE0751
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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