#CA7AF4#CA7AF4

#CA7AF4 is a light, vivid violet. Relative luminance 0.330; OKLCH L 71.3% C 0.187 H 312.8°. Best body text is #000000 at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#CA7AF4
RGBrgb(202, 122, 244)
HSLhsl(279, 85%, 72%)
HSVhsv(279, 50%, 96%)
CMYKcmyk(17.2%, 50%, 0%, 4.3%)
CIE-LABlab(64.17, 51.63, -49.08)
CIE-LCHlch(64.17, 71.24, 316.45°)
OKLaboklab(71.26% 0.1269 -0.1369)
OKLCHoklch(71.26% 0.187 312.8)
XYZxyz(47.6430, 33.0084, 89.4319)
Luminance0.3301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7AF4 #A4F47A
analogous
#8D7AF4 #CA7AF4 #F47AE1
triadic
#CA7AF4 #F4CA7A #7AF4CA
tetradic
#CA7AF4 #F48D7A #A4F47A #7AE1F4
square
#CA7AF4 #F48D7A #A4F47A #7AE1F4
split-complementary
#CA7AF4 #E1F47A #7AF48D
monochromatic
#9A13E1 #B341EF #CA7AF4 #E1B3F9 #F4E3FD

Accessibility & contrast

On white

2.76
#CA7AF4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.60
#CA7AF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7AF4
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7AF4#FFFFFF#000000##000000
##CA7AF41.002.767.607.60
#FFFFFF2.761.0021.0021.00
#0000007.6021.001.001.00
##0000007.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D97F8
Deuteranopia (green-blind)
#759DF1
Tritanopia (blue-blind)
#C68DAC
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ca7af4;
/* rgb */ color: rgb(202, 122, 244);
/* oklch */ color: oklch(71.3% 0.187 312.8);
Tailwind
colors: {
  custom: {
    50: '#dca3f8',
    500: '#ca7af4',
    950: '#000000',
  },
}
SCSS
$custom: #ca7af4;
$custom-light: #dca3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7af4",
  "rgb": {
    "r": 202,
    "g": 122,
    "b": 244
  },
  "hsl": {
    "h": 279.344,
    "s": 84.722,
    "l": 71.765
  },
  "oklch": {
    "l": 0.71259,
    "c": 0.18668,
    "h": 312.8
  },
  "luminance": 0.33007
}

Semantic roles & 50–950 ramp

primary
#CA7AF4
secondary
#E0F4D5
accent
#E10450
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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