#AF7AFC#AF7AFC

#AF7AFC is a light, vivid violet. Relative luminance 0.301; OKLCH L 68.9% C 0.188 H 300.4°. Best body text is #000000 at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#AF7AFC
RGBrgb(175, 122, 252)
HSLhsl(264, 96%, 73%)
HSVhsv(264, 52%, 99%)
CMYKcmyk(30.6%, 51.6%, 0%, 1.2%)
CIE-LABlab(61.71, 46.51, -57.57)
CIE-LCHlch(61.71, 74.01, 308.94°)
OKLaboklab(68.92% 0.0951 -0.1624)
OKLCHoklch(68.92% 0.188 300.4)
XYZxyz(42.2053, 30.0611, 95.6554)
Luminance0.3006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AFC #C7FC7A
analogous
#7A86FC #AF7AFC #F07AFC
triadic
#AF7AFC #FCAF7A #7AFCAF
tetradic
#AF7AFC #FC7A86 #C7FC7A #7AFCF0
square
#AF7AFC #FC7A86 #C7FC7A #7AFCF0
split-complementary
#AF7AFC #FCF07A #86FC7A
monochromatic
#6806F6 #8B3EFB #AF7AFC #D3B6FD #EDE1FE

Accessibility & contrast

On white

2.99
#AF7AFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.01
#AF7AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7AFC
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7AFC#FFFFFF#000000##000000
##AF7AFC1.002.997.017.01
#FFFFFF2.991.0021.0021.00
#0000007.0121.001.001.00
##0000007.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B95FF
Deuteranopia (green-blind)
#5A94F9
Tritanopia (blue-blind)
#A093B0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7afc;
/* rgb */ color: rgb(175, 122, 252);
/* oklch */ color: oklch(68.9% 0.188 300.4);
Tailwind
colors: {
  custom: {
    50: '#caa2fe',
    500: '#af7afc',
    950: '#000000',
  },
}
SCSS
$custom: #af7afc;
$custom-light: #caa2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af7afc",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 264.462,
    "s": 95.588,
    "l": 73.333
  },
  "oklch": {
    "l": 0.68922,
    "c": 0.18816,
    "h": 300.4
  },
  "luminance": 0.30061
}

Semantic roles & 50–950 ramp

primary
#AF7AFC
secondary
#E9F7D4
accent
#E60088
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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