#CA7DF7#CA7DF7

#CA7DF7 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.9% C 0.185 H 311.7°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#CA7DF7
RGBrgb(202, 125, 247)
HSLhsl(278, 88%, 73%)
HSVhsv(278, 49%, 97%)
CMYKcmyk(18.2%, 49.4%, 0%, 3.1%)
CIE-LABlab(64.92, 50.71, -49.55)
CIE-LCHlch(64.92, 70.90, 315.66°)
OKLaboklab(71.86% 0.1232 -0.1383)
OKLCHoklch(71.86% 0.185 311.7)
XYZxyz(48.4763, 33.9402, 91.9751)
Luminance0.3394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7DF7 #AAF77D
analogous
#8D7DF7 #CA7DF7 #F77DE7
triadic
#CA7DF7 #F7CA7D #7DF7CA
tetradic
#CA7DF7 #F78D7D #AAF77D #7DE7F7
square
#CA7DF7 #F78D7D #AAF77D #7DE7F7
split-complementary
#CA7DF7 #E7F77D #7DF78D
monochromatic
#9A0EEB #B243F3 #CA7DF7 #E2B7FB #F3E2FD

Accessibility & contrast

On white

2.70
#CA7DF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CA7DF7#FFFFFF#000000##000000
##CA7DF71.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9AFB
Deuteranopia (green-blind)
#769FF4
Tritanopia (blue-blind)
#C591AF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7df7;
/* rgb */ color: rgb(202, 125, 247);
/* oklch */ color: oklch(71.9% 0.185 311.7);
Tailwind
colors: {
  custom: {
    50: '#dca5fa',
    500: '#ca7df7',
    950: '#000000',
  },
}
SCSS
$custom: #ca7df7;
$custom-light: #dca5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7df7",
  "rgb": {
    "r": 202,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 277.869,
    "s": 88.406,
    "l": 72.941
  },
  "oklch": {
    "l": 0.7186,
    "c": 0.18523,
    "h": 311.7
  },
  "luminance": 0.33939
}

Semantic roles & 50–950 ramp

primary
#CA7DF7
secondary
#E1F5D6
accent
#E50055
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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