#AF7AFD#AF7AFD

#AF7AFD is a light, vivid violet. Relative luminance 0.301; OKLCH L 69.0% C 0.189 H 300.2°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#AF7AFD
RGBrgb(175, 122, 253)
HSLhsl(264, 97%, 74%)
HSVhsv(264, 52%, 99%)
CMYKcmyk(30.8%, 51.8%, 0%, 0.8%)
CIE-LABlab(61.76, 46.76, -58.03)
CIE-LCHlch(61.76, 74.53, 308.86°)
OKLaboklab(68.98% 0.0952 -0.1637)
OKLCHoklch(68.98% 0.189 300.2)
XYZxyz(42.3642, 30.1246, 96.4922)
Luminance0.3013 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AFD #C8FD7A
analogous
#7A86FD #AF7AFD #F17AFD
triadic
#AF7AFD #FDAF7A #7AFDAF
tetradic
#AF7AFD #FD7A86 #C8FD7A #7AFDF1
square
#AF7AFD #FD7A86 #C8FD7A #7AFDF1
split-complementary
#AF7AFD #FDF17A #86FD7A
monochromatic
#6704F9 #8B3EFC #AF7AFD #D3B6FE #EDE1FF

Accessibility & contrast

On white

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

On black

7.03
#AF7AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7AFD
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7AFD#FFFFFF#000000##000000
##AF7AFD1.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A95FF
Deuteranopia (green-blind)
#5994FA
Tritanopia (blue-blind)
#9F93B0
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7afd;
/* rgb */ color: rgb(175, 122, 253);
/* oklch */ color: oklch(69.0% 0.189 300.2);
Tailwind
colors: {
  custom: {
    50: '#caa2ff',
    500: '#af7afd',
    950: '#000000',
  },
}
SCSS
$custom: #af7afd;
$custom-light: #caa2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af7afd",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 264.275,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.6898,
    "c": 0.18936,
    "h": 300.2
  },
  "luminance": 0.30125
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF7AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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