#CA87FD#CA87FD

#CA87FD is a light, vivid violet. Relative luminance 0.370; OKLCH L 73.7% C 0.176 H 308.9°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#CA87FD
RGBrgb(202, 135, 253)
HSLhsl(274, 97%, 76%)
HSVhsv(274, 47%, 99%)
CMYKcmyk(20.2%, 46.6%, 0%, 0.8%)
CIE-LABlab(67.26, 46.75, -49.14)
CIE-LCHlch(67.26, 67.82, 313.57°)
OKLaboklab(73.7% 0.1106 -0.1371)
OKLCHoklch(73.7% 0.176 308.9)
XYZxyz(50.7473, 36.9770, 97.3734)
Luminance0.3698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA87FD #BAFD87
analogous
#8F87FD #CA87FD #FD87F5
triadic
#CA87FD #FDCA87 #87FDCA
tetradic
#CA87FD #FD8F87 #BAFD87 #87F5FD
square
#CA87FD #FD8F87 #BAFD87 #87F5FD
split-complementary
#CA87FD #F5FD87 #87FD8F
monochromatic
#950FFB #AF4BFC #CA87FD #E5C3FE #F2E1FE

Accessibility & contrast

On white

2.50
#CA87FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#CA87FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA87FD
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA87FD#FFFFFF#000000##000000
##CA87FD1.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA1FF
Deuteranopia (green-blind)
#7CA5FA
Tritanopia (blue-blind)
#C39AB6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ca87fd;
/* rgb */ color: rgb(202, 135, 253);
/* oklch */ color: oklch(73.7% 0.176 308.9);
Tailwind
colors: {
  custom: {
    50: '#dcabfe',
    500: '#ca87fd',
    950: '#000000',
  },
}
SCSS
$custom: #ca87fd;
$custom-light: #dcabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#ca87fd",
  "rgb": {
    "r": 202,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 274.068,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.73699,
    "c": 0.17615,
    "h": 308.9
  },
  "luminance": 0.36976
}

Semantic roles & 50–950 ramp

primary
#CA87FD
secondary
#E3F7D4
accent
#E60063
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CA87FD

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

Preview Lab → · Contrast checker → · Palette generator →

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