#AF76FC#AF76FC

#AF76FC is a light, vivid violet. Relative luminance 0.291; OKLCH L 68.3% C 0.194 H 301.0°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#AF76FC
RGBrgb(175, 118, 252)
HSLhsl(266, 96%, 73%)
HSVhsv(266, 53%, 99%)
CMYKcmyk(30.6%, 53.2%, 0%, 1.2%)
CIE-LABlab(60.87, 48.67, -58.91)
CIE-LCHlch(60.87, 76.41, 309.56°)
OKLaboklab(68.3% 0.1001 -0.1663)
OKLCHoklch(68.3% 0.194 301)
XYZxyz(41.7242, 29.0989, 95.4951)
Luminance0.2910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF76FC #C3FC76
analogous
#7680FC #AF76FC #F276FC
triadic
#AF76FC #FCAF76 #76FCAF
tetradic
#AF76FC #FC7680 #C3FC76 #76FCF2
square
#AF76FC #FC7680 #C3FC76 #76FCF2
split-complementary
#AF76FC #FCF276 #80FC76
monochromatic
#6A05F2 #8C3AFB #AF76FC #D2B2FD #EEE1FE

Accessibility & contrast

On white

3.08
#AF76FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#AF76FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF76FC
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF76FC#FFFFFF#000000##000000
##AF76FC1.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4392FF
Deuteranopia (green-blind)
#5592F9
Tritanopia (blue-blind)
#A090AE
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #af76fc;
/* rgb */ color: rgb(175, 118, 252);
/* oklch */ color: oklch(68.3% 0.194 301.0);
Tailwind
colors: {
  custom: {
    50: '#ca9ffe',
    500: '#af76fc',
    950: '#000000',
  },
}
SCSS
$custom: #af76fc;
$custom-light: #ca9ffe;
$custom-dark: #000000;
JSON
{
  "hex": "#af76fc",
  "rgb": {
    "r": 175,
    "g": 118,
    "b": 252
  },
  "hsl": {
    "h": 265.522,
    "s": 95.714,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68301,
    "c": 0.19408,
    "h": 301
  },
  "luminance": 0.29099
}

Semantic roles & 50–950 ramp

primary
#AF76FC
secondary
#E8F7D4
accent
#E60084
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F18
muted
#827E86

Preview Lab

Preview with #AF76FC

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

Preview Lab → · Contrast checker → · Palette generator →

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