#CE7AFE#CE7AFE

#CE7AFE is a light, vivid violet. Relative luminance 0.342; OKLCH L 72.2% C 0.199 H 311.8°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#CE7AFE
RGBrgb(206, 122, 254)
HSLhsl(278, 99%, 74%)
HSVhsv(278, 52%, 100%)
CMYKcmyk(18.9%, 52%, 0%, 0.4%)
CIE-LABlab(65.12, 54.78, -53.04)
CIE-LCHlch(65.12, 76.25, 315.92°)
OKLaboklab(72.22% 0.1326 -0.1483)
OKLCHoklch(72.22% 0.199 311.8)
XYZxyz(50.2993, 34.1977, 97.6978)
Luminance0.3420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE7AFE #AAFE7A
analogous
#8C7AFE #CE7AFE #FE7AEC
triadic
#CE7AFE #FECE7A #7AFECE
tetradic
#CE7AFE #FE8C7A #AAFE7A #7AECFE
square
#CE7AFE #FE8C7A #AAFE7A #7AECFE
split-complementary
#CE7AFE #ECFE7A #7AFE8C
monochromatic
#A102FC #B83DFE #CE7AFE #E4B7FE #F4E1FF

Accessibility & contrast

On white

2.68
#CE7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#CE7AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CE7AFE
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE7AFE#FFFFFF#000000##000000
##CE7AFE1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#579AFF
Deuteranopia (green-blind)
#72A0FB
Tritanopia (blue-blind)
#C990B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ce7afe;
/* rgb */ color: rgb(206, 122, 254);
/* oklch */ color: oklch(72.2% 0.199 311.8);
Tailwind
colors: {
  custom: {
    50: '#e0a3ff',
    500: '#ce7afe',
    950: '#000000',
  },
}
SCSS
$custom: #ce7afe;
$custom-light: #e0a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ce7afe",
  "rgb": {
    "r": 206,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 278.182,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72224,
    "c": 0.19893,
    "h": 311.8
  },
  "luminance": 0.34197
}

Semantic roles & 50–950 ramp

primary
#CE7AFE
secondary
#E1F7D4
accent
#E60053
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#150F18
muted
#847F86

Preview Lab

Preview with #CE7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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