#CA7BEB#CA7BEB

#CA7BEB is a light, vivid purple. Relative luminance 0.327; OKLCH L 70.9% C 0.175 H 315.2°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#CA7BEB
RGBrgb(202, 123, 235)
HSLhsl(282, 74%, 70%)
HSVhsv(282, 48%, 92%)
CMYKcmyk(14%, 47.7%, 0%, 7.8%)
CIE-LABlab(63.94, 49.24, -44.48)
CIE-LCHlch(63.94, 66.36, 317.91°)
OKLaboklab(70.95% 0.1245 -0.1235)
OKLCHoklch(70.95% 0.175 315.2)
XYZxyz(46.4331, 32.7219, 82.4511)
Luminance0.3272 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7BEB #9CEB7B
analogous
#927BEB #CA7BEB #EB7BD4
triadic
#CA7BEB #EBCA7B #7BEBCA
tetradic
#CA7BEB #EB927B #9CEB7B #7BD4EB
square
#CA7BEB #EB927B #9CEB7B #7BD4EB
split-complementary
#CA7BEB #D4EB7B #7BEB92
monochromatic
#991FCD #B546E3 #CA7BEB #DFB0F3 #F4E4FB

Accessibility & contrast

On white

2.78
#CA7BEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#CA7BEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7BEB
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7BEB#FFFFFF#000000##000000
##CA7BEB1.002.787.547.54
#FFFFFF2.781.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496EF
Deuteranopia (green-blind)
#7B9DE8
Tritanopia (blue-blind)
#C88CA8
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ca7beb;
/* rgb */ color: rgb(202, 123, 235);
/* oklch */ color: oklch(70.9% 0.175 315.2);
Tailwind
colors: {
  custom: {
    50: '#dca3f2',
    500: '#ca7beb',
    950: '#000000',
  },
}
SCSS
$custom: #ca7beb;
$custom-light: #dca3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7beb",
  "rgb": {
    "r": 202,
    "g": 123,
    "b": 235
  },
  "hsl": {
    "h": 282.321,
    "s": 73.684,
    "l": 70.196
  },
  "oklch": {
    "l": 0.70945,
    "c": 0.17539,
    "h": 315.2
  },
  "luminance": 0.32721
}

Semantic roles & 50–950 ramp

primary
#CA7BEB
secondary
#DBF0D1
accent
#D6104A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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