#CE7AFB#CE7AFB

#CE7AFB is a light, vivid violet. Relative luminance 0.340; OKLCH L 72.1% C 0.196 H 312.5°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#CE7AFB
RGBrgb(206, 122, 251)
HSLhsl(279, 94%, 73%)
HSVhsv(279, 51%, 98%)
CMYKcmyk(17.9%, 51.4%, 0%, 1.6%)
CIE-LABlab(64.97, 54.15, -51.64)
CIE-LCHlch(64.97, 74.82, 316.36°)
OKLaboklab(72.06% 0.1323 -0.1442)
OKLCHoklch(72.06% 0.196 312.5)
XYZxyz(49.8227, 34.0071, 95.1875)
Luminance0.3401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CE7AFB #A7FB7A
analogous
#8D7AFB #CE7AFB #FB7AE7
triadic
#CE7AFB #FBCE7A #7AFBCE
tetradic
#CE7AFB #FB8D7A #A7FB7A #7AE7FB
square
#CE7AFB #FB8D7A #A7FB7A #7AE7FB
split-complementary
#CE7AFB #E7FB7A #7AFB8D
monochromatic
#A107F3 #B83FF9 #CE7AFB #E4B5FD #F4E1FE

Accessibility & contrast

On white

2.69
#CE7AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#CE7AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CE7AFB
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CE7AFB#FFFFFF#000000##000000
##CE7AFB1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A99FF
Deuteranopia (green-blind)
#74A0F8
Tritanopia (blue-blind)
#CA8FAF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ce7afb;
/* rgb */ color: rgb(206, 122, 251);
/* oklch */ color: oklch(72.1% 0.196 312.5);
Tailwind
colors: {
  custom: {
    50: '#dfa3fd',
    500: '#ce7afb',
    950: '#000000',
  },
}
SCSS
$custom: #ce7afb;
$custom-light: #dfa3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ce7afb",
  "rgb": {
    "r": 206,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 279.07,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.72063,
    "c": 0.19573,
    "h": 312.5
  },
  "luminance": 0.34006
}

Semantic roles & 50–950 ramp

primary
#CE7AFB
secondary
#E0F6D5
accent
#E60050
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#150F18
muted
#847F86

Preview Lab

Preview with #CE7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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