#CA7EFE#CA7EFE

#CA7EFE is a light, vivid violet. Relative luminance 0.346; OKLCH L 72.4% C 0.191 H 309.8°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#CA7EFE
RGBrgb(202, 126, 254)
HSLhsl(276, 98%, 75%)
HSVhsv(276, 50%, 100%)
CMYKcmyk(20.5%, 50.4%, 0%, 0.4%)
CIE-LABlab(65.46, 51.69, -52.52)
CIE-LCHlch(65.46, 73.70, 314.54°)
OKLaboklab(72.38% 0.1226 -0.1469)
OKLCHoklch(72.38% 0.191 309.8)
XYZxyz(49.7040, 34.6349, 97.8135)
Luminance0.3463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7EFE #B2FE7E
analogous
#8A7EFE #CA7EFE #FE7EF2
triadic
#CA7EFE #FECA7E #7EFECA
tetradic
#CA7EFE #FE8A7E #B2FE7E #7EF2FE
square
#CA7EFE #FE8A7E #B2FE7E #7EF2FE
split-complementary
#CA7EFE #F2FE7E #7EFE8A
monochromatic
#9805FD #B141FE #CA7EFE #E3BBFE #F3E1FF

Accessibility & contrast

On white

2.65
#CA7EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#CA7EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7EFE
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7EFE#FFFFFF#000000##000000
##CA7EFE1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9BFF
Deuteranopia (green-blind)
#73A0FB
Tritanopia (blue-blind)
#C394B3
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ca7efe;
/* rgb */ color: rgb(202, 126, 254);
/* oklch */ color: oklch(72.4% 0.191 309.8);
Tailwind
colors: {
  custom: {
    50: '#dda5ff',
    500: '#ca7efe',
    950: '#000000',
  },
}
SCSS
$custom: #ca7efe;
$custom-light: #dda5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7efe",
  "rgb": {
    "r": 202,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 275.625,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.7238,
    "c": 0.19137,
    "h": 309.8
  },
  "luminance": 0.34634
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA7EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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