#CA7DFC#CA7DFC

#CA7DFC is a light, vivid violet. Relative luminance 0.343; OKLCH L 72.1% C 0.191 H 310.5°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#CA7DFC
RGBrgb(202, 125, 252)
HSLhsl(276, 95%, 74%)
HSVhsv(276, 50%, 99%)
CMYKcmyk(19.8%, 50.4%, 0%, 1.2%)
CIE-LABlab(65.16, 51.78, -51.90)
CIE-LCHlch(65.16, 73.32, 314.93°)
OKLaboklab(72.13% 0.1237 -0.1451)
OKLCHoklch(72.13% 0.191 310.5)
XYZxyz(49.2582, 34.2530, 96.0932)
Luminance0.3425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7DFC #AFFC7D
analogous
#8B7DFC #CA7DFC #FC7DEF
triadic
#CA7DFC #FCCA7D #7DFCCA
tetradic
#CA7DFC #FC8B7D #AFFC7D #7DEFFC
square
#CA7DFC #FC8B7D #AFFC7D #7DEFFC
split-complementary
#CA7DFC #EFFC7D #7DFC8B
monochromatic
#9906F9 #B241FB #CA7DFC #E2B9FD #F3E1FE

Accessibility & contrast

On white

2.68
#CA7DFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#CA7DFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7DFC
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7DFC#FFFFFF#000000##000000
##CA7DFC1.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9BFF
Deuteranopia (green-blind)
#73A0F9
Tritanopia (blue-blind)
#C492B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ca7dfc;
/* rgb */ color: rgb(202, 125, 252);
/* oklch */ color: oklch(72.1% 0.191 310.5);
Tailwind
colors: {
  custom: {
    50: '#dda5fe',
    500: '#ca7dfc',
    950: '#000000',
  },
}
SCSS
$custom: #ca7dfc;
$custom-light: #dda5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7dfc",
  "rgb": {
    "r": 202,
    "g": 125,
    "b": 252
  },
  "hsl": {
    "h": 276.378,
    "s": 95.489,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72125,
    "c": 0.19071,
    "h": 310.5
  },
  "luminance": 0.34252
}

Semantic roles & 50–950 ramp

primary
#CA7DFC
secondary
#E2F7D4
accent
#E6005A
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CA7DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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