#AF7AEB#AF7AEB

#AF7AEB is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.0% C 0.168 H 303.9°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#AF7AEB
RGBrgb(175, 122, 235)
HSLhsl(268, 74%, 70%)
HSVhsv(268, 48%, 92%)
CMYKcmyk(25.5%, 48.1%, 0%, 7.8%)
CIE-LABlab(60.81, 42.46, -49.60)
CIE-LCHlch(60.81, 65.30, 310.57°)
OKLaboklab(67.96% 0.0936 -0.1391)
OKLCHoklch(67.96% 0.168 303.9)
XYZxyz(39.6309, 29.0313, 82.0969)
Luminance0.2903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AEB #B6EB7A
analogous
#7A7DEB #AF7AEB #E87AEB
triadic
#AF7AEB #EBAF7A #7AEBAF
tetradic
#AF7AEB #EB7A7D #B6EB7A #7AEBE8
square
#AF7AEB #EB7A7D #B6EB7A #7AEBE8
split-complementary
#AF7AEB #EBE87A #7DEB7A
monochromatic
#701FCC #8F45E3 #AF7AEB #CFAFF3 #EFE4FB

Accessibility & contrast

On white

3.09
#AF7AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#AF7AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7AEB
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7AEB#FFFFFF#000000##000000
##AF7AEB1.003.096.816.81
#FFFFFF3.091.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5991EF
Deuteranopia (green-blind)
#6793E8
Tritanopia (blue-blind)
#A58EA8
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7aeb;
/* rgb */ color: rgb(175, 122, 235);
/* oklch */ color: oklch(68.0% 0.168 303.9);
Tailwind
colors: {
  custom: {
    50: '#c9a1f2',
    500: '#af7aeb',
    950: '#000000',
  },
}
SCSS
$custom: #af7aeb;
$custom-light: #c9a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af7aeb",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 235
  },
  "hsl": {
    "h": 268.142,
    "s": 73.856,
    "l": 70
  },
  "oklch": {
    "l": 0.67963,
    "c": 0.16765,
    "h": 303.9
  },
  "luminance": 0.29031
}

Semantic roles & 50–950 ramp

primary
#AF7AEB
secondary
#E1F0D1
accent
#D61079
background
#FCFAFE
surface
#F9F3FD
border
#D2CDD5
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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