#AF76F8#AF76F8

#AF76F8 is a light, vivid violet. Relative luminance 0.288; OKLCH L 68.1% C 0.189 H 301.8°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#AF76F8
RGBrgb(175, 118, 248)
HSLhsl(266, 90%, 72%)
HSVhsv(266, 52%, 97%)
CMYKcmyk(29.4%, 52.4%, 0%, 2.7%)
CIE-LABlab(60.65, 47.71, -57.06)
CIE-LCHlch(60.65, 74.38, 309.90°)
OKLaboklab(68.07% 0.0999 -0.1609)
OKLCHoklch(68.07% 0.189 301.8)
XYZxyz(41.0970, 28.8481, 92.1918)
Luminance0.2885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF76F8 #BFF876
analogous
#767EF8 #AF76F8 #F076F8
triadic
#AF76F8 #F8AF76 #76F8AF
tetradic
#AF76F8 #F8767E #BFF876 #76F8F0
square
#AF76F8 #F8767E #BFF876 #76F8F0
split-complementary
#AF76F8 #F8F076 #7EF876
monochromatic
#6C0CE8 #8D3CF5 #AF76F8 #D1B0FB #EEE2FE

Accessibility & contrast

On white

3.10
#AF76F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#AF76F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF76F8
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF76F8#FFFFFF#000000##000000
##AF76F81.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4791FC
Deuteranopia (green-blind)
#5992F5
Tritanopia (blue-blind)
#A18FAC
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #af76f8;
/* rgb */ color: rgb(175, 118, 248);
/* oklch */ color: oklch(68.1% 0.189 301.8);
Tailwind
colors: {
  custom: {
    50: '#ca9ffb',
    500: '#af76f8',
    950: '#000000',
  },
}
SCSS
$custom: #af76f8;
$custom-light: #ca9ffb;
$custom-dark: #000000;
JSON
{
  "hex": "#af76f8",
  "rgb": {
    "r": 175,
    "g": 118,
    "b": 248
  },
  "hsl": {
    "h": 266.308,
    "s": 90.278,
    "l": 71.765
  },
  "oklch": {
    "l": 0.68066,
    "c": 0.18935,
    "h": 301.8
  },
  "luminance": 0.28848
}

Semantic roles & 50–950 ramp

primary
#AF76F8
secondary
#E7F5D4
accent
#E60081
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F17
muted
#827E85

Preview Lab

Preview with #AF76F8

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

Preview Lab → · Contrast checker → · Palette generator →

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