#CA7EF8#CA7EF8

#CA7EF8 is a light, vivid violet. Relative luminance 0.343; OKLCH L 72.1% C 0.185 H 311.3°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#CA7EF8
RGBrgb(202, 126, 248)
HSLhsl(277, 90%, 73%)
HSVhsv(277, 49%, 97%)
CMYKcmyk(18.5%, 49.2%, 0%, 2.7%)
CIE-LABlab(65.17, 50.41, -49.70)
CIE-LCHlch(65.17, 70.79, 315.40°)
OKLaboklab(72.06% 0.122 -0.1387)
OKLCHoklch(72.06% 0.185 311.3)
XYZxyz(48.7582, 34.2565, 92.8324)
Luminance0.3426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7EF8 #ACF87E
analogous
#8D7EF8 #CA7EF8 #F87EE9
triadic
#CA7EF8 #F8CA7E #7EF8CA
tetradic
#CA7EF8 #F88D7E #ACF87E #7EE9F8
square
#CA7EF8 #F88D7E #ACF87E #7EE9F8
split-complementary
#CA7EF8 #E9F87E #7EF88D
monochromatic
#9A0DEF #B244F5 #CA7EF8 #E2B8FB #F3E2FD

Accessibility & contrast

On white

2.67
#CA7EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#CA7EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7EF8
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7EF8#FFFFFF#000000##000000
##CA7EF81.002.677.857.85
#FFFFFF2.671.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#609AFC
Deuteranopia (green-blind)
#76A0F5
Tritanopia (blue-blind)
#C592B0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ca7ef8;
/* rgb */ color: rgb(202, 126, 248);
/* oklch */ color: oklch(72.1% 0.185 311.3);
Tailwind
colors: {
  custom: {
    50: '#dca5fb',
    500: '#ca7ef8',
    950: '#000000',
  },
}
SCSS
$custom: #ca7ef8;
$custom-light: #dca5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7ef8",
  "rgb": {
    "r": 202,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 277.377,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72062,
    "c": 0.18476,
    "h": 311.3
  },
  "luminance": 0.34256
}

Semantic roles & 50–950 ramp

primary
#CA7EF8
secondary
#E2F6D5
accent
#E60057
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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