#CA7CF9#CA7CF9

#CA7CF9 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.8% C 0.189 H 311.3°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#CA7CF9
RGBrgb(202, 124, 249)
HSLhsl(277, 91%, 73%)
HSVhsv(277, 50%, 98%)
CMYKcmyk(18.9%, 50.2%, 0%, 2.4%)
CIE-LABlab(64.81, 51.66, -50.81)
CIE-LCHlch(64.81, 72.46, 315.47°)
OKLaboklab(71.82% 0.1248 -0.1419)
OKLCHoklch(71.82% 0.189 311.3)
XYZxyz(48.6606, 33.8124, 93.5672)
Luminance0.3381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7CF9 #ABF97C
analogous
#8B7CF9 #CA7CF9 #F97CE9
triadic
#CA7CF9 #F9CA7C #7CF9CA
tetradic
#CA7CF9 #F98B7C #ABF97C #7CE9F9
square
#CA7CF9 #F98B7C #ABF97C #7CE9F9
split-complementary
#CA7CF9 #E9F97C #7CF98B
monochromatic
#9A0BF0 #B241F6 #CA7CF9 #E2B7FC #F3E2FE

Accessibility & contrast

On white

2.71
#CA7CF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.76
#CA7CF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7CF9
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7CF9#FFFFFF#000000##000000
##CA7CF91.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C99FD
Deuteranopia (green-blind)
#749FF6
Tritanopia (blue-blind)
#C591AF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7cf9;
/* rgb */ color: rgb(202, 124, 249);
/* oklch */ color: oklch(71.8% 0.189 311.3);
Tailwind
colors: {
  custom: {
    50: '#dca4fc',
    500: '#ca7cf9',
    950: '#000000',
  },
}
SCSS
$custom: #ca7cf9;
$custom-light: #dca4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7cf9",
  "rgb": {
    "r": 202,
    "g": 124,
    "b": 249
  },
  "hsl": {
    "h": 277.44,
    "s": 91.241,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71817,
    "c": 0.18898,
    "h": 311.3
  },
  "luminance": 0.33811
}

Semantic roles & 50–950 ramp

primary
#CA7CF9
secondary
#E1F6D5
accent
#E60056
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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