#CA8AF2#CA8AF2

#CA8AF2 is a light, vivid violet. Relative luminance 0.371; OKLCH L 73.6% C 0.159 H 311.4°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#CA8AF2
RGBrgb(202, 138, 242)
HSLhsl(277, 80%, 75%)
HSVhsv(277, 43%, 95%)
CMYKcmyk(16.5%, 43%, 0%, 5.1%)
CIE-LABlab(67.39, 42.77, -42.92)
CIE-LCHlch(67.39, 60.59, 314.91°)
OKLaboklab(73.63% 0.1049 -0.1191)
OKLCHoklch(73.63% 0.159 311.4)
XYZxyz(49.4698, 37.1452, 88.5509)
Luminance0.3714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA8AF2 #B2F28A
analogous
#968AF2 #CA8AF2 #F28AE6
triadic
#CA8AF2 #F2CA8A #8AF2CA
tetradic
#CA8AF2 #F2968A #B2F28A #8AE6F2
square
#CA8AF2 #F2968A #B2F28A #8AE6F2
split-complementary
#CA8AF2 #E6F28A #8AF296
monochromatic
#981CE6 #B153EC #CA8AF2 #E3C1F8 #F3E3FC

Accessibility & contrast

On white

2.49
#CA8AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#CA8AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA8AF2
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA8AF2#FFFFFF#000000##000000
##CA8AF21.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A1F6
Deuteranopia (green-blind)
#85A5EF
Tritanopia (blue-blind)
#C69AB3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #ca8af2;
/* rgb */ color: rgb(202, 138, 242);
/* oklch */ color: oklch(73.6% 0.159 311.4);
Tailwind
colors: {
  custom: {
    50: '#dcadf7',
    500: '#ca8af2',
    950: '#000000',
  },
}
SCSS
$custom: #ca8af2;
$custom-light: #dcadf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca8af2",
  "rgb": {
    "r": 202,
    "g": 138,
    "b": 242
  },
  "hsl": {
    "h": 276.923,
    "s": 80,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73627,
    "c": 0.15868,
    "h": 311.4
  },
  "luminance": 0.37144
}

Semantic roles & 50–950 ramp

primary
#CA8AF2
secondary
#E2F4D7
accent
#DC095A
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CA8AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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