#AF76F2#AF76F2

#AF76F2 is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.7% C 0.182 H 303.1°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#AF76F2
RGBrgb(175, 118, 242)
HSLhsl(268, 83%, 71%)
HSVhsv(268, 51%, 95%)
CMYKcmyk(27.7%, 51.2%, 0%, 5.1%)
CIE-LABlab(60.32, 46.29, -54.26)
CIE-LCHlch(60.32, 71.32, 310.47°)
OKLaboklab(67.72% 0.0995 -0.1527)
OKLCHoklch(67.72% 0.182 303.1)
XYZxyz(40.1811, 28.4817, 87.3679)
Luminance0.2848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF76F2 #B9F276
analogous
#767BF2 #AF76F2 #ED76F2
triadic
#AF76F2 #F2AF76 #76F2AF
tetradic
#AF76F2 #F2767B #B9F276 #76F2ED
square
#AF76F2 #F2767B #B9F276 #76F2ED
split-complementary
#AF76F2 #F2ED76 #7BF276
monochromatic
#6F15D9 #8E3EED #AF76F2 #D0AEF7 #EFE3FC

Accessibility & contrast

On white

3.14
#AF76F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#AF76F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF76F2
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF76F2#FFFFFF#000000##000000
##AF76F21.003.146.706.70
#FFFFFF3.141.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D90F6
Deuteranopia (green-blind)
#5E91EF
Tritanopia (blue-blind)
#A38DA9
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af76f2;
/* rgb */ color: rgb(175, 118, 242);
/* oklch */ color: oklch(67.7% 0.182 303.1);
Tailwind
colors: {
  custom: {
    50: '#ca9ff7',
    500: '#af76f2',
    950: '#000000',
  },
}
SCSS
$custom: #af76f2;
$custom-light: #ca9ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#af76f2",
  "rgb": {
    "r": 175,
    "g": 118,
    "b": 242
  },
  "hsl": {
    "h": 267.581,
    "s": 82.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.67719,
    "c": 0.18223,
    "h": 303.1
  },
  "luminance": 0.28482
}

Semantic roles & 50–950 ramp

primary
#AF76F2
secondary
#E3F3D1
accent
#DF067B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140F17
muted
#827E85

Preview Lab

Preview with #AF76F2

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

Preview Lab → · Contrast checker → · Palette generator →

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