#AF7ECA#AF7ECA

#AF7ECA is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.0% C 0.121 H 312.9°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#AF7ECA
RGBrgb(175, 126, 202)
HSLhsl(279, 42%, 64%)
HSVhsv(279, 38%, 79%)
CMYKcmyk(13.4%, 37.6%, 0%, 20.8%)
CIE-LABlab(60.16, 32.82, -32.15)
CIE-LCHlch(60.16, 45.94, 315.59°)
OKLaboklab(66.97% 0.0825 -0.0886)
OKLCHoklch(66.97% 0.121 312.9)
XYZxyz(35.7989, 28.3006, 59.4424)
Luminance0.2830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7ECA #99CA7E
analogous
#897ECA #AF7ECA #CA7EBF
triadic
#AF7ECA #CAAF7E #7ECAAF
tetradic
#AF7ECA #CA897E #99CA7E #7EBFCA
square
#AF7ECA #CA897E #99CA7E #7EBFCA
split-complementary
#AF7ECA #BFCA7E #7ECA89
monochromatic
#733C92 #9453B8 #AF7ECA #CAA9DC #E5D5EE

Accessibility & contrast

On white

3.15
#AF7ECA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#AF7ECA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7ECA
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7ECA#FFFFFF#000000##000000
##AF7ECA1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#718ECD
Deuteranopia (green-blind)
#7C92C8
Tritanopia (blue-blind)
#AD889B
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af7eca;
/* rgb */ color: rgb(175, 126, 202);
/* oklch */ color: oklch(67.0% 0.121 312.9);
Tailwind
colors: {
  custom: {
    50: '#c8a4da',
    500: '#af7eca',
    950: '#000000',
  },
}
SCSS
$custom: #af7eca;
$custom-light: #c8a4da;
$custom-dark: #000000;
JSON
{
  "hex": "#af7eca",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 202
  },
  "hsl": {
    "h": 278.684,
    "s": 41.758,
    "l": 64.314
  },
  "oklch": {
    "l": 0.66971,
    "c": 0.12106,
    "h": 312.9
  },
  "luminance": 0.283
}

Semantic roles & 50–950 ramp

primary
#AF7ECA
secondary
#CEDFC5
accent
#B53160
background
#FCFAFD
surface
#F8F4FA
border
#D1CED3
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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