#CA7AFB#CA7AFB

#CA7AFB is a light, vivid violet. Relative luminance 0.334; OKLCH L 71.6% C 0.194 H 311.1°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#CA7AFB
RGBrgb(202, 122, 251)
HSLhsl(277, 94%, 73%)
HSVhsv(277, 51%, 98%)
CMYKcmyk(19.5%, 51.4%, 0%, 1.6%)
CIE-LABlab(64.52, 53.11, -52.38)
CIE-LCHlch(64.52, 74.60, 315.40°)
OKLaboklab(71.63% 0.1276 -0.1465)
OKLCHoklch(71.63% 0.194 311.1)
XYZxyz(48.7261, 33.4416, 95.1361)
Luminance0.3344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7AFB #ABFB7A
analogous
#897AFB #CA7AFB #FB7AEC
triadic
#CA7AFB #FBCA7A #7AFBCA
tetradic
#CA7AFB #FB897A #ABFB7A #7AECFB
square
#CA7AFB #FB897A #ABFB7A #7AECFB
split-complementary
#CA7AFB #ECFB7A #7AFB89
monochromatic
#9A07F3 #B23FF9 #CA7AFB #E2B5FD #F3E1FE

Accessibility & contrast

On white

2.73
#CA7AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#CA7AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7AFB
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7AFB#FFFFFF#000000##000000
##CA7AFB1.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#719EF8
Tritanopia (blue-blind)
#C490AF
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca7afb;
/* rgb */ color: rgb(202, 122, 251);
/* oklch */ color: oklch(71.6% 0.194 311.1);
Tailwind
colors: {
  custom: {
    50: '#dda3fd',
    500: '#ca7afb',
    950: '#000000',
  },
}
SCSS
$custom: #ca7afb;
$custom-light: #dda3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7afb",
  "rgb": {
    "r": 202,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 277.209,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.7163,
    "c": 0.19425,
    "h": 311.1
  },
  "luminance": 0.33441
}

Semantic roles & 50–950 ramp

primary
#CA7AFB
secondary
#E1F6D5
accent
#E60057
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CA7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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