#CA7AF6#CA7AF6

#CA7AF6 is a light, vivid violet. Relative luminance 0.331; OKLCH L 71.4% C 0.189 H 312.3°. Best body text is #000000 at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#CA7AF6
RGBrgb(202, 122, 246)
HSLhsl(279, 87%, 72%)
HSVhsv(279, 50%, 96%)
CMYKcmyk(17.9%, 50.4%, 0%, 3.5%)
CIE-LABlab(64.27, 52.05, -50.03)
CIE-LCHlch(64.27, 72.20, 316.14°)
OKLaboklab(71.36% 0.1271 -0.1396)
OKLCHoklch(71.36% 0.189 312.3)
XYZxyz(47.9483, 33.1305, 91.0399)
Luminance0.3313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7AF6 #A6F67A
analogous
#8C7AF6 #CA7AF6 #F67AE4
triadic
#CA7AF6 #F6CA7A #7AF6CA
tetradic
#CA7AF6 #F68C7A #A6F67A #7AE4F6
square
#CA7AF6 #F68C7A #A6F67A #7AE4F6
split-complementary
#CA7AF6 #E4F67A #7AF68C
monochromatic
#9A10E6 #B341F2 #CA7AF6 #E1B3FA #F4E2FD

Accessibility & contrast

On white

2.75
#CA7AF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.63
#CA7AF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7AF6
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7AF6#FFFFFF#000000##000000
##CA7AF61.002.757.637.63
#FFFFFF2.751.0021.0021.00
#0000007.6321.001.001.00
##0000007.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C98FA
Deuteranopia (green-blind)
#749EF3
Tritanopia (blue-blind)
#C68EAD
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca7af6;
/* rgb */ color: rgb(202, 122, 246);
/* oklch */ color: oklch(71.4% 0.189 312.3);
Tailwind
colors: {
  custom: {
    50: '#dca3f9',
    500: '#ca7af6',
    950: '#000000',
  },
}
SCSS
$custom: #ca7af6;
$custom-light: #dca3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7af6",
  "rgb": {
    "r": 202,
    "g": 122,
    "b": 246
  },
  "hsl": {
    "h": 278.71,
    "s": 87.324,
    "l": 72.157
  },
  "oklch": {
    "l": 0.71364,
    "c": 0.18884,
    "h": 312.3
  },
  "luminance": 0.33129
}

Semantic roles & 50–950 ramp

primary
#CA7AF6
secondary
#E1F5D6
accent
#E40252
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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