#AF7ECF#AF7ECF

#AF7ECF is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.2% C 0.127 H 311.1°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#AF7ECF
RGBrgb(175, 126, 207)
HSLhsl(276, 46%, 65%)
HSVhsv(276, 39%, 81%)
CMYKcmyk(15.5%, 39.1%, 0%, 18.8%)
CIE-LABlab(60.37, 33.90, -34.63)
CIE-LCHlch(60.37, 48.46, 314.39°)
OKLaboklab(67.2% 0.0836 -0.0957)
OKLCHoklch(67.2% 0.127 311.1)
XYZxyz(36.4006, 28.5412, 62.6108)
Luminance0.2854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7ECF #9ECF7E
analogous
#867ECF #AF7ECF #CF7EC7
triadic
#AF7ECF #CFAF7E #7ECFAF
tetradic
#AF7ECF #CF867E #9ECF7E #7EC7CF
square
#AF7ECF #CF867E #9ECF7E #7EC7CF
split-complementary
#AF7ECF #C7CF7E #7ECF86
monochromatic
#733999 #9351BE #AF7ECF #CBABE0 #E6D7F0

Accessibility & contrast

On white

3.13
#AF7ECF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#AF7ECF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7ECF
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7ECF#FFFFFF#000000##000000
##AF7ECF1.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E8FD2
Deuteranopia (green-blind)
#7A93CD
Tritanopia (blue-blind)
#AC8A9D
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af7ecf;
/* rgb */ color: rgb(175, 126, 207);
/* oklch */ color: oklch(67.2% 0.127 311.1);
Tailwind
colors: {
  custom: {
    50: '#c8a4de',
    500: '#af7ecf',
    950: '#000000',
  },
}
SCSS
$custom: #af7ecf;
$custom-light: #c8a4de;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ecf",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 207
  },
  "hsl": {
    "h": 276.296,
    "s": 45.763,
    "l": 65.294
  },
  "oklch": {
    "l": 0.67204,
    "c": 0.12708,
    "h": 311.1
  },
  "luminance": 0.28541
}

Semantic roles & 50–950 ramp

primary
#AF7ECF
secondary
#D2E2C7
accent
#B92D64
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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