#AF2FE2#AF2FE2

#AF2FE2 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.4% C 0.256 H 313.7°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AF2FE2
RGBrgb(175, 47, 226)
HSLhsl(283, 76%, 54%)
HSVhsv(283, 79%, 89%)
CMYKcmyk(22.6%, 79.2%, 0%, 11.4%)
CIE-LABlab(47.80, 74.34, -65.39)
CIE-LCHlch(47.80, 99.01, 318.67°)
OKLaboklab(58.36% 0.1766 -0.185)
OKLCHoklch(58.36% 0.256 313.7)
XYZxyz(32.4208, 16.6391, 73.4406)
Luminance0.1664 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FE2 #62E22F
analogous
#552FE2 #AF2FE2 #E22FBB
triadic
#AF2FE2 #E2AF2F #2FE2AF
tetradic
#AF2FE2 #E2552F #62E22F #2FBBE2
square
#AF2FE2 #E2552F #62E22F #2FBBE2
split-complementary
#AF2FE2 #BBE22F #2FE255
monochromatic
#641284 #8C1ABA #AF2FE2 #C465E9 #D89AF1

Accessibility & contrast

On white

4.85
#AF2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#AF2FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FE2
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FE2#FFFFFF#000000##FFFFFF
##AF2FE21.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#1774DE
Tritanopia (blue-blind)
#AA5B8A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af2fe2;
/* rgb */ color: rgb(175, 47, 226);
/* oklch */ color: oklch(58.4% 0.256 313.7);
Tailwind
colors: {
  custom: {
    50: '#cc77ec',
    500: '#af2fe2',
    950: '#000000',
  },
}
SCSS
$custom: #af2fe2;
$custom-light: #cc77ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fe2",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 282.905,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5836,
    "c": 0.25573,
    "h": 313.7
  },
  "luminance": 0.16638
}

Semantic roles & 50–950 ramp

primary
#AF2FE2
secondary
#A6DD90
accent
#F2366B
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF2FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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