#CA7EF1#CA7EF1

#CA7EF1 is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.7% C 0.177 H 313.2°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#CA7EF1
RGBrgb(202, 126, 241)
HSLhsl(280, 80%, 72%)
HSVhsv(280, 48%, 95%)
CMYKcmyk(16.2%, 47.7%, 0%, 5.5%)
CIE-LABlab(64.83, 48.93, -46.39)
CIE-LCHlch(64.83, 67.42, 316.53°)
OKLaboklab(71.7% 0.1212 -0.1291)
OKLCHoklch(71.7% 0.177 313.2)
XYZxyz(47.6925, 33.8302, 87.2196)
Luminance0.3383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA7EF1 #A5F17E
analogous
#917EF1 #CA7EF1 #F17EDF
triadic
#CA7EF1 #F1CA7E #7EF1CA
tetradic
#CA7EF1 #F1917E #A5F17E #7EDFF1
square
#CA7EF1 #F1917E #A5F17E #7EDFF1
split-complementary
#CA7EF1 #DFF17E #7EF191
monochromatic
#9A18DD #B347EB #CA7EF1 #E1B5F7 #F4E3FC

Accessibility & contrast

On white

2.70
#CA7EF1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#CA7EF1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA7EF1
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA7EF1#FFFFFF#000000##000000
##CA7EF11.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6599F5
Deuteranopia (green-blind)
#7A9FEE
Tritanopia (blue-blind)
#C790AC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ca7ef1;
/* rgb */ color: rgb(202, 126, 241);
/* oklch */ color: oklch(71.7% 0.177 313.2);
Tailwind
colors: {
  custom: {
    50: '#dca5f6',
    500: '#ca7ef1',
    950: '#000000',
  },
}
SCSS
$custom: #ca7ef1;
$custom-light: #dca5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#ca7ef1",
  "rgb": {
    "r": 202,
    "g": 126,
    "b": 241
  },
  "hsl": {
    "h": 279.652,
    "s": 80.42,
    "l": 71.961
  },
  "oklch": {
    "l": 0.71701,
    "c": 0.17707,
    "h": 313.2
  },
  "luminance": 0.33829
}

Semantic roles & 50–950 ramp

primary
#CA7EF1
secondary
#E1F4D7
accent
#DD0951
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#150F17
muted
#837F85

Preview Lab

Preview with #CA7EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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