#CA7CF8#CA7CF8

#CA7CF8 is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.8% C 0.188 H 311.6°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#CA7CF8
RGBrgb(202, 124, 248)
HSLhsl(278, 90%, 73%)
HSVhsv(278, 50%, 97%)
CMYKcmyk(18.5%, 50%, 0%, 2.7%)
CIE-LABlab(64.76, 51.44, -50.34)
CIE-LCHlch(64.76, 71.98, 315.62°)
OKLaboklab(71.76% 0.1247 -0.1406)
OKLCHoklch(71.76% 0.188 311.6)
XYZxyz(48.5050, 33.7502, 92.7480)
Luminance0.3375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7CF8 #AAF87C
analogous
#8C7CF8 #CA7CF8 #F87CE8
triadic
#CA7CF8 #F8CA7C #7CF8CA
tetradic
#CA7CF8 #F88C7C #AAF87C #7CE8F8
square
#CA7CF8 #F88C7C #AAF87C #7CE8F8
split-complementary
#CA7CF8 #E8F87C #7CF88C
monochromatic
#9A0DED #B242F5 #CA7CF8 #E2B6FB #F3E2FD

Accessibility & contrast

On white

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

On black

7.75
#CA7CF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7CF8
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7CF8#FFFFFF#000000##000000
##CA7CF81.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D99FC
Deuteranopia (green-blind)
#759FF5
Tritanopia (blue-blind)
#C590AF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7cf8;
/* rgb */ color: rgb(202, 124, 248);
/* oklch */ color: oklch(71.8% 0.188 311.6);
Tailwind
colors: {
  custom: {
    50: '#dca4fb',
    500: '#ca7cf8',
    950: '#000000',
  },
}
SCSS
$custom: #ca7cf8;
$custom-light: #dca4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7cf8",
  "rgb": {
    "r": 202,
    "g": 124,
    "b": 248
  },
  "hsl": {
    "h": 277.742,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.71764,
    "c": 0.18789,
    "h": 311.6
  },
  "luminance": 0.33749
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA7CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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