#AF76F7#AF76F7

#AF76F7 is a light, vivid violet. Relative luminance 0.288; OKLCH L 68.0% C 0.188 H 302.0°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#AF76F7
RGBrgb(175, 118, 247)
HSLhsl(267, 89%, 72%)
HSVhsv(267, 52%, 97%)
CMYKcmyk(29.1%, 52.2%, 0%, 3.1%)
CIE-LABlab(60.59, 47.47, -56.59)
CIE-LCHlch(60.59, 73.87, 309.99°)
OKLaboklab(68.01% 0.0998 -0.1595)
OKLCHoklch(68.01% 0.188 302)
XYZxyz(40.9423, 28.7862, 91.3770)
Luminance0.2879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF76F7 #BEF776
analogous
#767EF7 #AF76F7 #F076F7
triadic
#AF76F7 #F7AF76 #76F7AF
tetradic
#AF76F7 #F7767E #BEF776 #76F7F0
square
#AF76F7 #F7767E #BEF776 #76F7F0
split-complementary
#AF76F7 #F7F076 #7EF776
monochromatic
#6D0DE5 #8D3CF4 #AF76F7 #D1B0FA #EEE2FD

Accessibility & contrast

On white

3.11
#AF76F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#AF76F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF76F7
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF76F7#FFFFFF#000000##000000
##AF76F71.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4891FB
Deuteranopia (green-blind)
#5A92F4
Tritanopia (blue-blind)
#A18EAC
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af76f7;
/* rgb */ color: rgb(175, 118, 247);
/* oklch */ color: oklch(68.0% 0.188 302.0);
Tailwind
colors: {
  custom: {
    50: '#ca9ffa',
    500: '#af76f7',
    950: '#000000',
  },
}
SCSS
$custom: #af76f7;
$custom-light: #ca9ffa;
$custom-dark: #000000;
JSON
{
  "hex": "#af76f7",
  "rgb": {
    "r": 175,
    "g": 118,
    "b": 247
  },
  "hsl": {
    "h": 266.512,
    "s": 88.966,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68008,
    "c": 0.18816,
    "h": 302
  },
  "luminance": 0.28786
}

Semantic roles & 50–950 ramp

primary
#AF76F7
secondary
#E6F5D4
accent
#E60080
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F17
muted
#827E85

Preview Lab

Preview with #AF76F7

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

Preview Lab → · Contrast checker → · Palette generator →

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