#AF1EA6#AF1EA6

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

Color values

HEX#AF1EA6
RGBrgb(175, 30, 166)
HSLhsl(304, 71%, 40%)
HSVhsv(304, 83%, 69%)
CMYKcmyk(0%, 82.9%, 5.1%, 31.4%)
CIE-LABlab(42.46, 68.50, -39.05)
CIE-LCHlch(42.46, 78.85, 330.31°)
OKLaboklab(53.38% 0.1955 -0.1078)
OKLCHoklch(53.38% 0.223 331.1)
XYZxyz(25.0264, 12.7978, 37.2211)
Luminance0.1280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF1EA6 #1EAF27
analogous
#6F1EAF #AF1EA6 #AF1E5E
triadic
#AF1EA6 #A6AF1E #1EA6AF
tetradic
#AF1EA6 #AF6F1E #1EAF27 #1E5EAF
square
#AF1EA6 #AF6F1E #1EAF27 #1E5EAF
split-complementary
#AF1EA6 #5EAF1E #1EAF6F
monochromatic
#470C43 #7B1574 #AF1EA6 #DB2FD1 #E463DC

Accessibility & contrast

On white

5.90
#AF1EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#AF1EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF1EA6
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF1EA6#FFFFFF#000000##FFFFFF
##AF1EA61.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0358A9
Deuteranopia (green-blind)
#516BA3
Tritanopia (blue-blind)
#B63464
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af1ea6;
/* rgb */ color: rgb(175, 30, 166);
/* oklch */ color: oklch(53.4% 0.223 331.1);
Tailwind
colors: {
  custom: {
    50: '#cb6fc1',
    500: '#af1ea6',
    950: '#000000',
  },
}
SCSS
$custom: #af1ea6;
$custom-light: #cb6fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#af1ea6",
  "rgb": {
    "r": 175,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 303.724,
    "s": 70.732,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53378,
    "c": 0.22329,
    "h": 331.1
  },
  "luminance": 0.12796
}

Semantic roles & 50–950 ramp

primary
#AF1EA6
secondary
#60C966
accent
#ED453A
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140812
muted
#837B81

Preview Lab

Preview with #AF1EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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