#CA8AFA#CA8AFA

#CA8AFA is a light, vivid violet. Relative luminance 0.376; OKLCH L 74.0% C 0.168 H 309.2°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#CA8AFA
RGBrgb(202, 138, 250)
HSLhsl(274, 92%, 76%)
HSVhsv(274, 45%, 98%)
CMYKcmyk(19.2%, 44.8%, 0%, 2%)
CIE-LABlab(67.75, 44.50, -46.72)
CIE-LCHlch(67.75, 64.52, 313.60°)
OKLaboklab(74.02% 0.1061 -0.1301)
OKLCHoklch(74.02% 0.168 309.2)
XYZxyz(50.6977, 37.6363, 95.0177)
Luminance0.3764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA8AFA #BAFA8A
analogous
#928AFA #CA8AFA #FA8AF2
triadic
#CA8AFA #FACA8A #8AFACA
tetradic
#CA8AFA #FA928A #BAFA8A #8AF2FA
square
#CA8AFA #FA928A #BAFA8A #8AF2FA
split-complementary
#CA8AFA #F2FA8A #8AFA92
monochromatic
#9515F5 #AF4FF7 #CA8AFA #E5C5FD #F2E2FE

Accessibility & contrast

On white

2.46
#CA8AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#CA8AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA8AFA
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA8AFA#FFFFFF#000000##000000
##CA8AFA1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A2FE
Deuteranopia (green-blind)
#81A6F7
Tritanopia (blue-blind)
#C49CB6
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ca8afa;
/* rgb */ color: rgb(202, 138, 250);
/* oklch */ color: oklch(74.0% 0.168 309.2);
Tailwind
colors: {
  custom: {
    50: '#dcadfc',
    500: '#ca8afa',
    950: '#000000',
  },
}
SCSS
$custom: #ca8afa;
$custom-light: #dcadfc;
$custom-dark: #000000;
JSON
{
  "hex": "#ca8afa",
  "rgb": {
    "r": 202,
    "g": 138,
    "b": 250
  },
  "hsl": {
    "h": 274.286,
    "s": 91.803,
    "l": 76.078
  },
  "oklch": {
    "l": 0.7402,
    "c": 0.16789,
    "h": 309.2
  },
  "luminance": 0.37636
}

Semantic roles & 50–950 ramp

primary
#CA8AFA
secondary
#E3F6D5
accent
#E60062
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CA8AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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