#CA7BF8#CA7BF8

#CA7BF8 is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.6% C 0.189 H 311.7°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#CA7BF8
RGBrgb(202, 123, 248)
HSLhsl(278, 90%, 73%)
HSVhsv(278, 50%, 97%)
CMYKcmyk(18.5%, 50.4%, 0%, 2.7%)
CIE-LABlab(64.56, 51.96, -50.66)
CIE-LCHlch(64.56, 72.57, 315.73°)
OKLaboklab(71.62% 0.126 -0.1415)
OKLCHoklch(71.62% 0.189 311.7)
XYZxyz(48.3803, 33.5008, 92.7064)
Luminance0.3350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7BF8 #A9F87B
analogous
#8B7BF8 #CA7BF8 #F87BE7
triadic
#CA7BF8 #F8CA7B #7BF8CA
tetradic
#CA7BF8 #F88B7B #A9F87B #7BE7F8
square
#CA7BF8 #F88B7B #A9F87B #7BE7F8
split-complementary
#CA7BF8 #E7F87B #7BF88B
monochromatic
#9A0DEC #B341F5 #CA7BF8 #E1B5FB #F3E2FD

Accessibility & contrast

On white

2.73
#CA7BF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#CA7BF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7BF8
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7BF8#FFFFFF#000000##000000
##CA7BF81.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C99FC
Deuteranopia (green-blind)
#749EF5
Tritanopia (blue-blind)
#C58FAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7bf8;
/* rgb */ color: rgb(202, 123, 248);
/* oklch */ color: oklch(71.6% 0.189 311.7);
Tailwind
colors: {
  custom: {
    50: '#dca3fb',
    500: '#ca7bf8',
    950: '#000000',
  },
}
SCSS
$custom: #ca7bf8;
$custom-light: #dca3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7bf8",
  "rgb": {
    "r": 202,
    "g": 123,
    "b": 248
  },
  "hsl": {
    "h": 277.92,
    "s": 89.928,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71617,
    "c": 0.18945,
    "h": 311.7
  },
  "luminance": 0.335
}

Semantic roles & 50–950 ramp

primary
#CA7BF8
secondary
#E1F6D5
accent
#E60054
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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