#CA7FF2#CA7FF2

#CA7FF2 is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.9% C 0.177 H 312.8°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#CA7FF2
RGBrgb(202, 127, 242)
HSLhsl(279, 82%, 72%)
HSVhsv(279, 48%, 95%)
CMYKcmyk(16.5%, 47.5%, 0%, 5.1%)
CIE-LABlab(65.08, 48.61, -46.54)
CIE-LCHlch(65.08, 67.30, 316.25°)
OKLaboklab(71.9% 0.12 -0.1295)
OKLCHoklch(71.9% 0.177 312.8)
XYZxyz(47.9708, 34.1472, 88.0512)
Luminance0.3415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7FF2 #A7F27F
analogous
#907FF2 #CA7FF2 #F27FE1
triadic
#CA7FF2 #F2CA7F #7FF2CA
tetradic
#CA7FF2 #F2907F #A7F27F #7FE1F2
square
#CA7FF2 #F2907F #A7F27F #7FE1F2
split-complementary
#CA7FF2 #E1F27F #7FF290
monochromatic
#9A17E0 #B347EC #CA7FF2 #E1B7F8 #F3E3FC

Accessibility & contrast

On white

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

On black

7.83
#CA7FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7FF2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7FF2#FFFFFF#000000##000000
##CA7FF21.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#659AF6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#C691AD
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ca7ff2;
/* rgb */ color: rgb(202, 127, 242);
/* oklch */ color: oklch(71.9% 0.177 312.8);
Tailwind
colors: {
  custom: {
    50: '#dca6f7',
    500: '#ca7ff2',
    950: '#000000',
  },
}
SCSS
$custom: #ca7ff2;
$custom-light: #dca6f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7ff2",
  "rgb": {
    "r": 202,
    "g": 127,
    "b": 242
  },
  "hsl": {
    "h": 279.13,
    "s": 81.56,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71904,
    "c": 0.17657,
    "h": 312.8
  },
  "luminance": 0.34146
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA7FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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