#CA7EFB#CA7EFB

#CA7EFB is a light, vivid violet. Relative luminance 0.344; OKLCH L 72.2% C 0.188 H 310.6°. Best body text is #000000 at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#CA7EFB
RGBrgb(202, 126, 251)
HSLhsl(276, 94%, 74%)
HSVhsv(276, 50%, 98%)
CMYKcmyk(19.5%, 49.8%, 0%, 1.6%)
CIE-LABlab(65.31, 51.05, -51.12)
CIE-LCHlch(65.31, 72.24, 314.96°)
OKLaboklab(72.22% 0.1223 -0.1428)
OKLCHoklch(72.22% 0.188 310.6)
XYZxyz(49.2274, 34.4442, 95.3032)
Luminance0.3444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7EFB #AFFB7E
analogous
#8C7EFB #CA7EFB #FB7EEE
triadic
#CA7EFB #FBCA7E #7EFBCA
tetradic
#CA7EFB #FB8C7E #AFFB7E #7EEEFB
square
#CA7EFB #FB8C7E #AFFB7E #7EEEFB
split-complementary
#CA7EFB #EEFB7E #7EFB8C
monochromatic
#9908F7 #B243F9 #CA7EFB #E2B9FD #F3E1FE

Accessibility & contrast

On white

2.66
#CA7EFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.89
#CA7EFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7EFB
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7EFB#FFFFFF#000000##000000
##CA7EFB1.002.667.897.89
#FFFFFF2.661.0021.0021.00
#0000007.8921.001.001.00
##0000007.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9BFF
Deuteranopia (green-blind)
#75A0F8
Tritanopia (blue-blind)
#C493B1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ca7efb;
/* rgb */ color: rgb(202, 126, 251);
/* oklch */ color: oklch(72.2% 0.188 310.6);
Tailwind
colors: {
  custom: {
    50: '#dca5fd',
    500: '#ca7efb',
    950: '#000000',
  },
}
SCSS
$custom: #ca7efb;
$custom-light: #dca5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7efb",
  "rgb": {
    "r": 202,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 276.48,
    "s": 93.985,
    "l": 73.922
  },
  "oklch": {
    "l": 0.7222,
    "c": 0.18806,
    "h": 310.6
  },
  "luminance": 0.34443
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA7EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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