#AF7ECC#AF7ECC

#AF7ECC is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.1% C 0.123 H 312.2°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#AF7ECC
RGBrgb(175, 126, 204)
HSLhsl(278, 43%, 65%)
HSVhsv(278, 38%, 80%)
CMYKcmyk(14.2%, 38.2%, 0%, 20%)
CIE-LABlab(60.24, 33.25, -33.15)
CIE-LCHlch(60.24, 46.95, 315.09°)
OKLaboklab(67.06% 0.0829 -0.0915)
OKLCHoklch(67.06% 0.123 312.2)
XYZxyz(36.0373, 28.3959, 60.6976)
Luminance0.2839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7ECC #9BCC7E
analogous
#887ECC #AF7ECC #CC7EC2
triadic
#AF7ECC #CCAF7E #7ECCAF
tetradic
#AF7ECC #CC887E #9BCC7E #7EC2CC
square
#AF7ECC #CC887E #9BCC7E #7EC2CC
split-complementary
#AF7ECC #C2CC7E #7ECC88
monochromatic
#733B95 #9452BB #AF7ECC #CAAADD #E5D6EF

Accessibility & contrast

On white

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

On black

6.68
#AF7ECC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7ECC
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7ECC#FFFFFF#000000##000000
##AF7ECC1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#708FCF
Deuteranopia (green-blind)
#7B92CA
Tritanopia (blue-blind)
#AC899B
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af7ecc;
/* rgb */ color: rgb(175, 126, 204);
/* oklch */ color: oklch(67.1% 0.123 312.2);
Tailwind
colors: {
  custom: {
    50: '#c8a4dc',
    500: '#af7ecc',
    950: '#000000',
  },
}
SCSS
$custom: #af7ecc;
$custom-light: #c8a4dc;
$custom-dark: #000000;
JSON
{
  "hex": "#af7ecc",
  "rgb": {
    "r": 175,
    "g": 126,
    "b": 204
  },
  "hsl": {
    "h": 277.692,
    "s": 43.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.67064,
    "c": 0.12346,
    "h": 312.2
  },
  "luminance": 0.28395
}

Semantic roles & 50–950 ramp

primary
#AF7ECC
secondary
#CFE0C6
accent
#B62F61
background
#FCFAFD
surface
#F8F4FB
border
#D1CED4
text
#130F15
muted
#827F83

Preview Lab

Preview with #AF7ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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