#AF1EA7#AF1EA7

#AF1EA7 is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.4% C 0.224 H 330.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#AF1EA7
RGBrgb(175, 30, 167)
HSLhsl(303, 71%, 40%)
HSVhsv(303, 83%, 69%)
CMYKcmyk(0%, 82.9%, 4.6%, 31.4%)
CIE-LABlab(42.51, 68.65, -39.56)
CIE-LCHlch(42.51, 79.24, 330.05°)
OKLaboklab(53.44% 0.1955 -0.1093)
OKLCHoklch(53.44% 0.224 330.8)
XYZxyz(25.1185, 12.8346, 37.7061)
Luminance0.1283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1EA7 #1EAF26
analogous
#6E1EAF #AF1EA7 #AF1E5F
triadic
#AF1EA7 #A7AF1E #1EA7AF
tetradic
#AF1EA7 #AF6E1E #1EAF26 #1E5FAF
square
#AF1EA7 #AF6E1E #1EAF26 #1E5FAF
split-complementary
#AF1EA7 #5FAF1E #1EAF6E
monochromatic
#470C43 #7B1575 #AF1EA7 #DB2FD2 #E463DD

Accessibility & contrast

On white

5.89
#AF1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF1EA7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1EA7#FFFFFF#000000##FFFFFF
##AF1EA71.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AA
Deuteranopia (green-blind)
#506BA4
Tritanopia (blue-blind)
#B63564
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af1ea7;
/* rgb */ color: rgb(175, 30, 167);
/* oklch */ color: oklch(53.4% 0.224 330.8);
Tailwind
colors: {
  custom: {
    50: '#cb6fc1',
    500: '#af1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #af1ea7;
$custom-light: #cb6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#af1ea7",
  "rgb": {
    "r": 175,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 303.31,
    "s": 70.732,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53436,
    "c": 0.22399,
    "h": 330.8
  },
  "luminance": 0.12833
}

Semantic roles & 50–950 ramp

primary
#AF1EA7
secondary
#60C965
accent
#ED443A
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #AF1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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