#AF7AEF#AF7AEF

#AF7AEF is a light, vivid violet. Relative luminance 0.293; OKLCH L 68.2% C 0.172 H 303.0°. Best body text is #000000 at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#AF7AEF
RGBrgb(175, 122, 239)
HSLhsl(267, 79%, 71%)
HSVhsv(267, 49%, 94%)
CMYKcmyk(26.8%, 49%, 0%, 6.3%)
CIE-LABlab(61.01, 43.40, -51.50)
CIE-LCHlch(61.01, 67.35, 310.13°)
OKLaboklab(68.18% 0.094 -0.1446)
OKLCHoklch(68.18% 0.172 303)
XYZxyz(40.2153, 29.2651, 85.1747)
Luminance0.2927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AEF #BAEF7A
analogous
#7A7FEF #AF7AEF #E97AEF
triadic
#AF7AEF #EFAF7A #7AEFAF
tetradic
#AF7AEF #EF7A7F #BAEF7A #7AEFE9
square
#AF7AEF #EF7A7F #BAEF7A #7AEFE9
split-complementary
#AF7AEF #EFE97A #7FEF7A
monochromatic
#6E1AD5 #8E43E8 #AF7AEF #D0B1F6 #EFE4FC

Accessibility & contrast

On white

3.06
#AF7AEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.85
#AF7AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7AEF
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7AEF#FFFFFF#000000##000000
##AF7AEF1.003.066.856.85
#FFFFFF3.061.0021.0021.00
#0000006.8521.001.001.00
##0000006.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5692F3
Deuteranopia (green-blind)
#6493EC
Tritanopia (blue-blind)
#A48FA9
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af7aef;
/* rgb */ color: rgb(175, 122, 239);
/* oklch */ color: oklch(68.2% 0.172 303.0);
Tailwind
colors: {
  custom: {
    50: '#c9a2f5',
    500: '#af7aef',
    950: '#000000',
  },
}
SCSS
$custom: #af7aef;
$custom-light: #c9a2f5;
$custom-dark: #000000;
JSON
{
  "hex": "#af7aef",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 267.179,
    "s": 78.523,
    "l": 70.784
  },
  "oklch": {
    "l": 0.68183,
    "c": 0.17249,
    "h": 303
  },
  "luminance": 0.29265
}

Semantic roles & 50–950 ramp

primary
#AF7AEF
secondary
#E4F2D3
accent
#DB0B7D
background
#FCFAFF
surface
#F9F3FE
border
#D2CDD6
text
#130F17
muted
#827F85

Preview Lab

Preview with #AF7AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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