#AF02FD#AF02FD

#AF02FD is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 58.7% C 0.298 H 308.9°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#AF02FD
RGBrgb(175, 2, 253)
HSLhsl(281, 98%, 50%)
HSVhsv(281, 99%, 99%)
CMYKcmyk(30.8%, 99.2%, 0%, 0.8%)
CIE-LABlab(47.30, 86.99, -81.42)
CIE-LCHlch(47.30, 119.15, 316.89°)
OKLaboklab(58.65% 0.1868 -0.2319)
OKLCHoklch(58.65% 0.298 308.9)
XYZxyz(35.4268, 16.2499, 94.1797)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF02FD #50FD02
analogous
#3202FD #AF02FD #FD02CD
triadic
#AF02FD #FDAF02 #02FDAF
tetradic
#AF02FD #FD3202 #50FD02 #02CDFD
square
#AF02FD #FD3202 #50FD02 #02CDFD
split-complementary
#AF02FD #CDFD02 #02FD32
monochromatic
#5B0184 #8502C0 #AF02FD #C23FFD #D57BFE

Accessibility & contrast

On white

4.94
#AF02FD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AF02FD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF02FD
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF02FD#FFFFFF#000000##FFFFFF
##AF02FD1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BFF
Deuteranopia (green-blind)
#0072F9
Tritanopia (blue-blind)
#A25E95
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af02fd;
/* rgb */ color: rgb(175, 2, 253);
/* oklch */ color: oklch(58.7% 0.298 308.9);
Tailwind
colors: {
  custom: {
    50: '#cf6fff',
    500: '#af02fd',
    950: '#000000',
  },
}
SCSS
$custom: #af02fd;
$custom-light: #cf6fff;
$custom-dark: #000000;
JSON
{
  "hex": "#af02fd",
  "rgb": {
    "r": 175,
    "g": 2,
    "b": 253
  },
  "hsl": {
    "h": 281.355,
    "s": 98.431,
    "l": 50
  },
  "oklch": {
    "l": 0.58653,
    "c": 0.29775,
    "h": 308.9
  },
  "luminance": 0.16249
}

Semantic roles & 50–950 ramp

primary
#AF02FD
secondary
#98E675
accent
#FF296B
background
#FDF7FF
surface
#FBEDFF
border
#D4C8D7
text
#150918
muted
#837B86

Preview Lab

Preview with #AF02FD

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

Preview Lab → · Contrast checker → · Palette generator →

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