#CA7BFE#CA7BFE

#CA7BFE is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.9% C 0.196 H 310.2°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#CA7BFE
RGBrgb(202, 123, 254)
HSLhsl(276, 98%, 74%)
HSVhsv(276, 52%, 100%)
CMYKcmyk(20.5%, 51.6%, 0%, 0.4%)
CIE-LABlab(64.87, 53.24, -53.47)
CIE-LCHlch(64.87, 75.46, 314.88°)
OKLaboklab(71.94% 0.1265 -0.1497)
OKLCHoklch(71.94% 0.196 310.2)
XYZxyz(49.3261, 33.8791, 97.6876)
Luminance0.3388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7BFE #AFFE7B
analogous
#897BFE #CA7BFE #FE7BF1
triadic
#CA7BFE #FECA7B #7BFECA
tetradic
#CA7BFE #FE897B #AFFE7B #7BF1FE
square
#CA7BFE #FE897B #AFFE7B #7BF1FE
split-complementary
#CA7BFE #F1FE7B #7BFE89
monochromatic
#9902FD #B23EFE #CA7BFE #E2B8FE #F3E1FF

Accessibility & contrast

On white

2.70
#CA7BFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#CA7BFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7BFE
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7BFE#FFFFFF#000000##000000
##CA7BFE1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#579AFF
Deuteranopia (green-blind)
#709FFB
Tritanopia (blue-blind)
#C491B1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7bfe;
/* rgb */ color: rgb(202, 123, 254);
/* oklch */ color: oklch(71.9% 0.196 310.2);
Tailwind
colors: {
  custom: {
    50: '#dda3ff',
    500: '#ca7bfe',
    950: '#000000',
  },
}
SCSS
$custom: #ca7bfe;
$custom-light: #dda3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7bfe",
  "rgb": {
    "r": 202,
    "g": 123,
    "b": 254
  },
  "hsl": {
    "h": 276.183,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.71938,
    "c": 0.19599,
    "h": 310.2
  },
  "luminance": 0.33878
}

Semantic roles & 50–950 ramp

primary
#CA7BFE
secondary
#E2F7D4
accent
#E6005B
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CA7BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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