#AF1FA8#AF1FA8

#AF1FA8 is a mid, highly saturated purple. Relative luminance 0.129; OKLCH L 53.5% C 0.224 H 330.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AF1FA8
RGBrgb(175, 31, 168)
HSLhsl(303, 70%, 40%)
HSVhsv(303, 82%, 69%)
CMYKcmyk(0%, 82.3%, 4%, 31.4%)
CIE-LABlab(42.65, 68.58, -39.95)
CIE-LCHlch(42.65, 79.36, 329.78°)
OKLaboklab(53.55% 0.1948 -0.1104)
OKLCHoklch(53.55% 0.224 330.5)
XYZxyz(25.2370, 12.9232, 38.2034)
Luminance0.1292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1FA8 #1FAF26
analogous
#6E1FAF #AF1FA8 #AF1F60
triadic
#AF1FA8 #A8AF1F #1FA8AF
tetradic
#AF1FA8 #AF6E1F #1FAF26 #1F60AF
square
#AF1FA8 #AF6E1F #1FAF26 #1F60AF
split-complementary
#AF1FA8 #60AF1F #1FAF6E
monochromatic
#470D44 #7B1676 #AF1FA8 #DA31D2 #E465DE

Accessibility & contrast

On white

5.86
#AF1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AF1FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1FA8
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1FA8#FFFFFF#000000##FFFFFF
##AF1FA81.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#506BA5
Tritanopia (blue-blind)
#B63665
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af1fa8;
/* rgb */ color: rgb(175, 31, 168);
/* oklch */ color: oklch(53.5% 0.224 330.5);
Tailwind
colors: {
  custom: {
    50: '#cb6fc2',
    500: '#af1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #af1fa8;
$custom-light: #cb6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#af1fa8",
  "rgb": {
    "r": 175,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 302.917,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.5355,
    "c": 0.22395,
    "h": 330.5
  },
  "luminance": 0.12921
}

Semantic roles & 50–950 ramp

primary
#AF1FA8
secondary
#61C966
accent
#ED443B
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140812
muted
#837B81

Preview Lab

Preview with #AF1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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