#CA7AF8#CA7AF8

#CA7AF8 is a light, vivid violet. Relative luminance 0.333; OKLCH L 71.5% C 0.191 H 311.8°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#CA7AF8
RGBrgb(202, 122, 248)
HSLhsl(278, 90%, 73%)
HSVhsv(278, 51%, 97%)
CMYKcmyk(18.5%, 50.8%, 0%, 2.7%)
CIE-LABlab(64.37, 52.48, -50.97)
CIE-LCHlch(64.37, 73.15, 315.83°)
OKLaboklab(71.47% 0.1273 -0.1424)
OKLCHoklch(71.47% 0.191 311.8)
XYZxyz(48.2569, 33.2540, 92.6653)
Luminance0.3325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7AF8 #A8F87A
analogous
#8B7AF8 #CA7AF8 #F87AE7
triadic
#CA7AF8 #F8CA7A #7AF8CA
tetradic
#CA7AF8 #F88B7A #A8F87A #7AE7F8
square
#CA7AF8 #F88B7A #A8F87A #7AE7F8
split-complementary
#CA7AF8 #E7F87A #7AF88B
monochromatic
#9A0CEB #B340F5 #CA7AF8 #E1B4FB #F3E2FD

Accessibility & contrast

On white

2.74
#CA7AF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#CA7AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7AF8
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7AF8#FFFFFF#000000##000000
##CA7AF81.002.747.657.65
#FFFFFF2.741.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A98FC
Deuteranopia (green-blind)
#739EF5
Tritanopia (blue-blind)
#C58FAE
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca7af8;
/* rgb */ color: rgb(202, 122, 248);
/* oklch */ color: oklch(71.5% 0.191 311.8);
Tailwind
colors: {
  custom: {
    50: '#dda3fb',
    500: '#ca7af8',
    950: '#000000',
  },
}
SCSS
$custom: #ca7af8;
$custom-light: #dda3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7af8",
  "rgb": {
    "r": 202,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 278.095,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.7147,
    "c": 0.191,
    "h": 311.8
  },
  "luminance": 0.33253
}

Semantic roles & 50–950 ramp

primary
#CA7AF8
secondary
#E1F6D5
accent
#E60054
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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