#AF7AF7#AF7AF7

#AF7AF7 is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.6% C 0.182 H 301.3°. Best body text is #000000 at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#AF7AF7
RGBrgb(175, 122, 247)
HSLhsl(265, 89%, 72%)
HSVhsv(265, 51%, 97%)
CMYKcmyk(29.1%, 50.6%, 0%, 3.1%)
CIE-LABlab(61.44, 45.31, -55.25)
CIE-LCHlch(61.44, 71.45, 309.36°)
OKLaboklab(68.63% 0.0947 -0.1556)
OKLCHoklch(68.63% 0.182 301.3)
XYZxyz(41.4234, 29.7483, 91.5373)
Luminance0.2975 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AF7 #C2F77A
analogous
#7A84F7 #AF7AF7 #ED7AF7
triadic
#AF7AF7 #F7AF7A #7AF7AF
tetradic
#AF7AF7 #F77A84 #C2F77A #7AF7ED
square
#AF7AF7 #F77A84 #C2F77A #7AF7ED
split-complementary
#AF7AF7 #F7ED7A #84F77A
monochromatic
#6B0EE9 #8C40F4 #AF7AF7 #D2B4FA #EEE2FD

Accessibility & contrast

On white

3.02
#AF7AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.95
#AF7AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7AF7
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7AF7#FFFFFF#000000##000000
##AF7AF71.003.026.956.95
#FFFFFF3.021.0021.0021.00
#0000006.9521.001.001.00
##0000006.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5094FB
Deuteranopia (green-blind)
#5E94F4
Tritanopia (blue-blind)
#A191AD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #af7af7;
/* rgb */ color: rgb(175, 122, 247);
/* oklch */ color: oklch(68.6% 0.182 301.3);
Tailwind
colors: {
  custom: {
    50: '#caa2fa',
    500: '#af7af7',
    950: '#000000',
  },
}
SCSS
$custom: #af7af7;
$custom-light: #caa2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af7af7",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 265.44,
    "s": 88.652,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68633,
    "c": 0.18214,
    "h": 301.3
  },
  "luminance": 0.29748
}

Semantic roles & 50–950 ramp

primary
#AF7AF7
secondary
#E8F5D6
accent
#E50084
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF7AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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