#CA7DFB#CA7DFB

#CA7DFB is a light, vivid violet. Relative luminance 0.342; OKLCH L 72.1% C 0.190 H 310.7°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#CA7DFB
RGBrgb(202, 125, 251)
HSLhsl(277, 94%, 74%)
HSVhsv(277, 50%, 98%)
CMYKcmyk(19.5%, 50.2%, 0%, 1.6%)
CIE-LABlab(65.11, 51.57, -51.44)
CIE-LCHlch(65.11, 72.83, 315.07°)
OKLaboklab(72.07% 0.1237 -0.1438)
OKLCHoklch(72.07% 0.19 310.7)
XYZxyz(49.1001, 34.1897, 95.2608)
Luminance0.3419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7DFB #AEFB7D
analogous
#8B7DFB #CA7DFB #FB7DED
triadic
#CA7DFB #FBCA7D #7DFBCA
tetradic
#CA7DFB #FB8B7D #AEFB7D #7DEDFB
square
#CA7DFB #FB8B7D #AEFB7D #7DEDFB
split-complementary
#CA7DFB #EDFB7D #7DFB8B
monochromatic
#9908F6 #B242F9 #CA7DFB #E2B8FD #F3E1FE

Accessibility & contrast

On white

2.68
#CA7DFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#CA7DFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7DFB
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7DFB#FFFFFF#000000##000000
##CA7DFB1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9AFF
Deuteranopia (green-blind)
#749FF8
Tritanopia (blue-blind)
#C492B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ca7dfb;
/* rgb */ color: rgb(202, 125, 251);
/* oklch */ color: oklch(72.1% 0.190 310.7);
Tailwind
colors: {
  custom: {
    50: '#dda5fd',
    500: '#ca7dfb',
    950: '#000000',
  },
}
SCSS
$custom: #ca7dfb;
$custom-light: #dda5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7dfb",
  "rgb": {
    "r": 202,
    "g": 125,
    "b": 251
  },
  "hsl": {
    "h": 276.667,
    "s": 94.03,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72071,
    "c": 0.18962,
    "h": 310.7
  },
  "luminance": 0.34189
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA7DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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