#CA7DF9#CA7DF9

#CA7DF9 is a light, vivid violet. Relative luminance 0.341; OKLCH L 72.0% C 0.187 H 311.2°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#CA7DF9
RGBrgb(202, 125, 249)
HSLhsl(277, 91%, 73%)
HSVhsv(277, 50%, 98%)
CMYKcmyk(18.9%, 49.8%, 0%, 2.4%)
CIE-LABlab(65.01, 51.14, -50.49)
CIE-LCHlch(65.01, 71.87, 315.36°)
OKLaboklab(71.97% 0.1235 -0.141)
OKLCHoklch(71.97% 0.187 311.2)
XYZxyz(48.7865, 34.0643, 93.6092)
Luminance0.3406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7DF9 #ACF97D
analogous
#8C7DF9 #CA7DF9 #F97DEA
triadic
#CA7DF9 #F9CA7D #7DF9CA
tetradic
#CA7DF9 #F98C7D #ACF97D #7DEAF9
square
#CA7DF9 #F98C7D #ACF97D #7DEAF9
split-complementary
#CA7DF9 #EAF97D #7DF98C
monochromatic
#9A0BF0 #B242F6 #CA7DF9 #E2B7FC #F3E2FE

Accessibility & contrast

On white

2.69
#CA7DF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#CA7DF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7DF9
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7DF9#FFFFFF#000000##000000
##CA7DF91.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9AFD
Deuteranopia (green-blind)
#759FF6
Tritanopia (blue-blind)
#C591B0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ca7df9;
/* rgb */ color: rgb(202, 125, 249);
/* oklch */ color: oklch(72.0% 0.187 311.2);
Tailwind
colors: {
  custom: {
    50: '#dca5fc',
    500: '#ca7df9',
    950: '#000000',
  },
}
SCSS
$custom: #ca7df9;
$custom-light: #dca5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7df9",
  "rgb": {
    "r": 202,
    "g": 125,
    "b": 249
  },
  "hsl": {
    "h": 277.258,
    "s": 91.176,
    "l": 73.333
  },
  "oklch": {
    "l": 0.71965,
    "c": 0.18742,
    "h": 311.2
  },
  "luminance": 0.34063
}

Semantic roles & 50–950 ramp

primary
#CA7DF9
secondary
#E2F6D5
accent
#E60057
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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