#AF7AEC#AF7AEC

#AF7AEC is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.0% C 0.169 H 303.7°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#AF7AEC
RGBrgb(175, 122, 236)
HSLhsl(268, 75%, 70%)
HSVhsv(268, 48%, 93%)
CMYKcmyk(25.8%, 48.3%, 0%, 7.5%)
CIE-LABlab(60.86, 42.70, -50.08)
CIE-LCHlch(60.86, 65.81, 310.45°)
OKLaboklab(68.02% 0.0937 -0.1405)
OKLCHoklch(68.02% 0.169 303.7)
XYZxyz(39.7758, 29.0893, 82.8599)
Luminance0.2909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AEC #B7EC7A
analogous
#7A7EEC #AF7AEC #E87AEC
triadic
#AF7AEC #ECAF7A #7AECAF
tetradic
#AF7AEC #EC7A7E #B7EC7A #7AECE8
square
#AF7AEC #EC7A7E #B7EC7A #7AECE8
split-complementary
#AF7AEC #ECE87A #7EEC7A
monochromatic
#701DCE #8F44E4 #AF7AEC #CFB0F4 #EFE4FB

Accessibility & contrast

On white

3.08
#AF7AEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#AF7AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7AEC
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7AEC#FFFFFF#000000##000000
##AF7AEC1.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5892F0
Deuteranopia (green-blind)
#6693E9
Tritanopia (blue-blind)
#A48EA8
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7aec;
/* rgb */ color: rgb(175, 122, 236);
/* oklch */ color: oklch(68.0% 0.169 303.7);
Tailwind
colors: {
  custom: {
    50: '#c9a1f2',
    500: '#af7aec',
    950: '#000000',
  },
}
SCSS
$custom: #af7aec;
$custom-light: #c9a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af7aec",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 236
  },
  "hsl": {
    "h": 267.895,
    "s": 75,
    "l": 70.196
  },
  "oklch": {
    "l": 0.68018,
    "c": 0.16886,
    "h": 303.7
  },
  "luminance": 0.29089
}

Semantic roles & 50–950 ramp

primary
#AF7AEC
secondary
#E2F1D1
accent
#D70E7A
background
#FCFAFE
surface
#F9F3FD
border
#D2CDD5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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