#AF7ECE#AF7ECE

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

Color values

HEX#AF7ECE
RGBrgb(175, 126, 206)
HSLhsl(277, 45%, 65%)
HSVhsv(277, 39%, 81%)
CMYKcmyk(15%, 38.8%, 0%, 19.2%)
CIE-LABlab(60.33, 33.68, -34.14)
CIE-LCHlch(60.33, 47.96, 314.61°)
OKLaboklab(67.16% 0.0833 -0.0943)
OKLCHoklch(67.16% 0.126 311.5)
XYZxyz(36.2787, 28.4925, 61.9690)
Luminance0.2849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7ECE #9DCE7E
analogous
#877ECE #AF7ECE #CE7EC5
triadic
#AF7ECE #CEAF7E #7ECEAF
tetradic
#AF7ECE #CE877E #9DCE7E #7EC5CE
square
#AF7ECE #CE877E #9DCE7E #7EC5CE
split-complementary
#AF7ECE #C5CE7E #7ECE87
monochromatic
#733A98 #9352BD #AF7ECE #CBAADF #E6D7F0

Accessibility & contrast

On white

3.14
#AF7ECE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#AF7ECE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7ECE
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7ECE#FFFFFF#000000##000000
##AF7ECE1.003.146.706.70
#FFFFFF3.141.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F8FD1
Deuteranopia (green-blind)
#7A93CC
Tritanopia (blue-blind)
#AC899C
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af7ece;
/* rgb */ color: rgb(175, 126, 206);
/* oklch */ color: oklch(67.2% 0.126 311.5);
Tailwind
colors: {
  custom: {
    50: '#c8a4dd',
    500: '#af7ece',
    950: '#000000',
  },
}
SCSS
$custom: #af7ece;
$custom-light: #c8a4dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ece",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 206
  },
  "hsl": {
    "h": 276.75,
    "s": 44.944,
    "l": 65.098
  },
  "oklch": {
    "l": 0.67157,
    "c": 0.12587,
    "h": 311.5
  },
  "luminance": 0.28492
}

Semantic roles & 50–950 ramp

primary
#AF7ECE
secondary
#D1E1C6
accent
#B82D63
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7ECE

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

Preview Lab → · Contrast checker → · Palette generator →

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