#CA7EF2#CA7EF2

#CA7EF2 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.8% C 0.178 H 312.9°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#CA7EF2
RGBrgb(202, 126, 242)
HSLhsl(279, 82%, 72%)
HSVhsv(279, 48%, 95%)
CMYKcmyk(16.5%, 47.9%, 0%, 5.1%)
CIE-LABlab(64.88, 49.14, -46.86)
CIE-LCHlch(64.88, 67.90, 316.36°)
OKLaboklab(71.75% 0.1213 -0.1305)
OKLCHoklch(71.75% 0.178 312.9)
XYZxyz(47.8423, 33.8902, 88.0084)
Luminance0.3389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7EF2 #A6F27E
analogous
#907EF2 #CA7EF2 #F27EE0
triadic
#CA7EF2 #F2CA7E #7EF2CA
tetradic
#CA7EF2 #F2907E #A6F27E #7EE0F2
square
#CA7EF2 #F2907E #A6F27E #7EE0F2
split-complementary
#CA7EF2 #E0F27E #7EF290
monochromatic
#9A16DF #B346EC #CA7EF2 #E1B6F8 #F4E3FC

Accessibility & contrast

On white

2.70
#CA7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#CA7EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7EF2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7EF2#FFFFFF#000000##000000
##CA7EF21.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#7A9FEF
Tritanopia (blue-blind)
#C690AD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7ef2;
/* rgb */ color: rgb(202, 126, 242);
/* oklch */ color: oklch(71.8% 0.178 312.9);
Tailwind
colors: {
  custom: {
    50: '#dca5f7',
    500: '#ca7ef2',
    950: '#000000',
  },
}
SCSS
$custom: #ca7ef2;
$custom-light: #dca5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7ef2",
  "rgb": {
    "r": 202,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 279.31,
    "s": 81.69,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71752,
    "c": 0.17816,
    "h": 312.9
  },
  "luminance": 0.33889
}

Semantic roles & 50–950 ramp

primary
#CA7EF2
secondary
#E1F4D7
accent
#DE0751
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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