#CA7BFB#CA7BFB

#CA7BFB is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.8% C 0.193 H 310.9°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#CA7BFB
RGBrgb(202, 123, 251)
HSLhsl(277, 94%, 73%)
HSVhsv(277, 51%, 98%)
CMYKcmyk(19.5%, 51%, 0%, 1.6%)
CIE-LABlab(64.71, 52.60, -52.07)
CIE-LCHlch(64.71, 74.01, 315.29°)
OKLaboklab(71.78% 0.1263 -0.1456)
OKLCHoklch(71.78% 0.193 310.9)
XYZxyz(48.8495, 33.6885, 95.1773)
Luminance0.3369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7BFB #ACFB7B
analogous
#8A7BFB #CA7BFB #FB7BEC
triadic
#CA7BFB #FBCA7B #7BFBCA
tetradic
#CA7BFB #FB8A7B #ACFB7B #7BECFB
square
#CA7BFB #FB8A7B #ACFB7B #7BECFB
split-complementary
#CA7BFB #ECFB7B #7BFB8A
monochromatic
#9A07F4 #B240F9 #CA7BFB #E2B6FD #F3E1FE

Accessibility & contrast

On white

2.71
#CA7BFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#CA7BFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7BFB
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7BFB#FFFFFF#000000##000000
##CA7BFB1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5999FF
Deuteranopia (green-blind)
#729FF8
Tritanopia (blue-blind)
#C490B0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7bfb;
/* rgb */ color: rgb(202, 123, 251);
/* oklch */ color: oklch(71.8% 0.193 310.9);
Tailwind
colors: {
  custom: {
    50: '#dda3fd',
    500: '#ca7bfb',
    950: '#000000',
  },
}
SCSS
$custom: #ca7bfb;
$custom-light: #dda3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7bfb",
  "rgb": {
    "r": 202,
    "g": 123,
    "b": 251
  },
  "hsl": {
    "h": 277.031,
    "s": 94.118,
    "l": 73.333
  },
  "oklch": {
    "l": 0.71776,
    "c": 0.19272,
    "h": 310.9
  },
  "luminance": 0.33688
}

Semantic roles & 50–950 ramp

primary
#CA7BFB
secondary
#E2F6D5
accent
#E60058
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CA7BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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