#AF7BF6#AF7BF6

#AF7BF6 is a light, vivid violet. Relative luminance 0.299; OKLCH L 68.7% C 0.179 H 301.4°. Best body text is #000000 at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#AF7BF6
RGBrgb(175, 123, 246)
HSLhsl(265, 87%, 72%)
HSVhsv(265, 50%, 96%)
CMYKcmyk(28.9%, 50%, 0%, 3.5%)
CIE-LABlab(61.60, 44.52, -54.44)
CIE-LCHlch(61.60, 70.33, 309.28°)
OKLaboklab(68.74% 0.0934 -0.1532)
OKLCHoklch(68.74% 0.179 301.4)
XYZxyz(41.3929, 29.9336, 90.7680)
Luminance0.2993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF7BF6 #C2F67B
analogous
#7B84F6 #AF7BF6 #ED7BF6
triadic
#AF7BF6 #F6AF7B #7BF6AF
tetradic
#AF7BF6 #F67B84 #C2F67B #7BF6ED
square
#AF7BF6 #F67B84 #C2F67B #7BF6ED
split-complementary
#AF7BF6 #F6ED7B #84F67B
monochromatic
#6B10E7 #8C42F2 #AF7BF6 #D2B4FA #EEE2FD

Accessibility & contrast

On white

3.01
#AF7BF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.99
#AF7BF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF7BF6
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF7BF6#FFFFFF#000000##000000
##AF7BF61.003.016.996.99
#FFFFFF3.011.0021.0021.00
#0000006.9921.001.001.00
##0000006.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5294FA
Deuteranopia (green-blind)
#6094F3
Tritanopia (blue-blind)
#A192AD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #af7bf6;
/* rgb */ color: rgb(175, 123, 246);
/* oklch */ color: oklch(68.7% 0.179 301.4);
Tailwind
colors: {
  custom: {
    50: '#caa2fa',
    500: '#af7bf6',
    950: '#000000',
  },
}
SCSS
$custom: #af7bf6;
$custom-light: #caa2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#af7bf6",
  "rgb": {
    "r": 175,
    "g": 123,
    "b": 246
  },
  "hsl": {
    "h": 265.366,
    "s": 87.234,
    "l": 72.353
  },
  "oklch": {
    "l": 0.68735,
    "c": 0.17941,
    "h": 301.4
  },
  "luminance": 0.29934
}

Semantic roles & 50–950 ramp

primary
#AF7BF6
secondary
#E8F5D6
accent
#E40284
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85

Preview Lab

Preview with #AF7BF6

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

Preview Lab → · Contrast checker → · Palette generator →

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