#CA7BF6#CA7BF6

#CA7BF6 is a light, vivid violet. Relative luminance 0.334; OKLCH L 71.5% C 0.187 H 312.2°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#CA7BF6
RGBrgb(202, 123, 246)
HSLhsl(279, 87%, 72%)
HSVhsv(279, 50%, 96%)
CMYKcmyk(17.9%, 50%, 0%, 3.5%)
CIE-LABlab(64.47, 51.54, -49.71)
CIE-LCHlch(64.47, 71.61, 316.03°)
OKLaboklab(71.51% 0.1258 -0.1387)
OKLCHoklch(71.51% 0.187 312.2)
XYZxyz(48.0717, 33.3774, 91.0810)
Luminance0.3338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7BF6 #A7F67B
analogous
#8D7BF6 #CA7BF6 #F67BE4
triadic
#CA7BF6 #F6CA7B #7BF6CA
tetradic
#CA7BF6 #F68D7B #A7F67B #7BE4F6
square
#CA7BF6 #F68D7B #A7F67B #7BE4F6
split-complementary
#CA7BF6 #E4F67B #7BF68D
monochromatic
#9A10E7 #B342F2 #CA7BF6 #E1B4FA #F3E2FD

Accessibility & contrast

On white

2.74
#CA7BF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#CA7BF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7BF6
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7BF6#FFFFFF#000000##000000
##CA7BF61.002.747.687.68
#FFFFFF2.741.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D98FA
Deuteranopia (green-blind)
#759EF3
Tritanopia (blue-blind)
#C68FAD
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ca7bf6;
/* rgb */ color: rgb(202, 123, 246);
/* oklch */ color: oklch(71.5% 0.187 312.2);
Tailwind
colors: {
  custom: {
    50: '#dca3f9',
    500: '#ca7bf6',
    950: '#000000',
  },
}
SCSS
$custom: #ca7bf6;
$custom-light: #dca3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7bf6",
  "rgb": {
    "r": 202,
    "g": 123,
    "b": 246
  },
  "hsl": {
    "h": 278.537,
    "s": 87.234,
    "l": 72.353
  },
  "oklch": {
    "l": 0.71511,
    "c": 0.18727,
    "h": 312.2
  },
  "luminance": 0.33376
}

Semantic roles & 50–950 ramp

primary
#CA7BF6
secondary
#E1F5D6
accent
#E40253
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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