#AF1EA8#AF1EA8

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

Color values

HEX#AF1EA8
RGBrgb(175, 30, 168)
HSLhsl(303, 71%, 40%)
HSVhsv(303, 83%, 69%)
CMYKcmyk(0%, 82.9%, 4%, 31.4%)
CIE-LABlab(42.57, 68.81, -40.07)
CIE-LCHlch(42.57, 79.62, 329.78°)
OKLaboklab(53.49% 0.1955 -0.1108)
OKLCHoklch(53.49% 0.225 330.5)
XYZxyz(25.2113, 12.8717, 38.1949)
Luminance0.1287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1EA8 #1EAF25
analogous
#6E1EAF #AF1EA8 #AF1E5F
triadic
#AF1EA8 #A8AF1E #1EA8AF
tetradic
#AF1EA8 #AF6E1E #1EAF25 #1E5FAF
square
#AF1EA8 #AF6E1E #1EAF25 #1E5FAF
split-complementary
#AF1EA8 #5FAF1E #1EAF6E
monochromatic
#470C44 #7B1576 #AF1EA8 #DB2FD3 #E463DE

Accessibility & contrast

On white

5.88
#AF1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AF1EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1EA8
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1EA8#FFFFFF#000000##FFFFFF
##AF1EA81.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af1ea8;
/* rgb */ color: rgb(175, 30, 168);
/* oklch */ color: oklch(53.5% 0.225 330.5);
Tailwind
colors: {
  custom: {
    50: '#cb6fc2',
    500: '#af1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #af1ea8;
$custom-light: #cb6fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#af1ea8",
  "rgb": {
    "r": 175,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 302.897,
    "s": 70.732,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53494,
    "c": 0.22468,
    "h": 330.5
  },
  "luminance": 0.1287
}

Semantic roles & 50–950 ramp

primary
#AF1EA8
secondary
#60C965
accent
#ED433A
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140812
muted
#837B81

Preview Lab

Preview with #AF1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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