#AF7AFB#AF7AFB

#AF7AFB is a light, vivid violet. Relative luminance 0.300; OKLCH L 68.9% C 0.187 H 300.5°. Best body text is #000000 at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#AF7AFB
RGBrgb(175, 122, 251)
HSLhsl(265, 94%, 73%)
HSVhsv(265, 51%, 98%)
CMYKcmyk(30.3%, 51.4%, 0%, 1.6%)
CIE-LABlab(61.65, 46.27, -57.11)
CIE-LCHlch(61.65, 73.50, 309.02°)
OKLaboklab(68.86% 0.095 -0.161)
OKLCHoklch(68.86% 0.187 300.5)
XYZxyz(42.0472, 29.9978, 94.8230)
Luminance0.3000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7AFB #C6FB7A
analogous
#7A85FB #AF7AFB #EF7AFB
triadic
#AF7AFB #FBAF7A #7AFBAF
tetradic
#AF7AFB #FB7A85 #C6FB7A #7AFBEF
square
#AF7AFB #FB7A85 #C6FB7A #7AFBEF
split-complementary
#AF7AFB #FBEF7A #85FB7A
monochromatic
#6807F3 #8B3FF9 #AF7AFB #D3B5FD #EDE1FE

Accessibility & contrast

On white

3.00
#AF7AFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

7.00
#AF7AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF7AFB
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7AFB#FFFFFF#000000##000000
##AF7AFB1.003.007.007.00
#FFFFFF3.001.0021.0021.00
#0000007.0021.001.001.00
##0000007.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C94FF
Deuteranopia (green-blind)
#5B94F8
Tritanopia (blue-blind)
#A093AF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7afb;
/* rgb */ color: rgb(175, 122, 251);
/* oklch */ color: oklch(68.9% 0.187 300.5);
Tailwind
colors: {
  custom: {
    50: '#caa2fd',
    500: '#af7afb',
    950: '#000000',
  },
}
SCSS
$custom: #af7afb;
$custom-light: #caa2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#af7afb",
  "rgb": {
    "r": 175,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 264.651,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.68864,
    "c": 0.18696,
    "h": 300.5
  },
  "luminance": 0.29998
}

Semantic roles & 50–950 ramp

primary
#AF7AFB
secondary
#E8F6D5
accent
#E60087
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F18
muted
#827F86

Preview Lab

Preview with #AF7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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