#AF2EE3#AF2EE3

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

Color values

HEX#AF2EE3
RGBrgb(175, 46, 227)
HSLhsl(283, 76%, 54%)
HSVhsv(283, 80%, 89%)
CMYKcmyk(22.9%, 79.7%, 0%, 11%)
CIE-LABlab(47.77, 74.83, -66.01)
CIE-LCHlch(47.77, 99.78, 318.58°)
OKLaboklab(58.36% 0.1771 -0.1868)
OKLCHoklch(58.36% 0.257 313.5)
XYZxyz(32.5189, 16.6151, 74.1522)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EE3 #62E32E
analogous
#542EE3 #AF2EE3 #E32EBD
triadic
#AF2EE3 #E3AF2E #2EE3AF
tetradic
#AF2EE3 #E3542E #62E32E #2EBDE3
square
#AF2EE3 #E3542E #62E32E #2EBDE3
split-complementary
#AF2EE3 #BDE32E #2EE354
monochromatic
#641285 #8C19BB #AF2EE3 #C464EA #D89AF1

Accessibility & contrast

On white

4.86
#AF2EE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF2EE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EE3
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EE3#FFFFFF#000000##FFFFFF
##AF2EE31.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE8
Deuteranopia (green-blind)
#1274DF
Tritanopia (blue-blind)
#A95B8A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af2ee3;
/* rgb */ color: rgb(175, 46, 227);
/* oklch */ color: oklch(58.4% 0.257 313.5);
Tailwind
colors: {
  custom: {
    50: '#cc77ed',
    500: '#af2ee3',
    950: '#000000',
  },
}
SCSS
$custom: #af2ee3;
$custom-light: #cc77ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ee3",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 227
  },
  "hsl": {
    "h": 282.762,
    "s": 76.371,
    "l": 53.529
  },
  "oklch": {
    "l": 0.5836,
    "c": 0.25739,
    "h": 313.5
  },
  "luminance": 0.16614
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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