#AF2FAC#AF2FAC

#AF2FAC is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.212 H 329.0°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#AF2FAC
RGBrgb(175, 47, 172)
HSLhsl(301, 58%, 44%)
HSVhsv(301, 73%, 69%)
CMYKcmyk(0%, 73.1%, 1.7%, 31.4%)
CIE-LABlab(44.42, 64.75, -39.52)
CIE-LCHlch(44.42, 75.86, 328.61°)
OKLaboklab(54.88% 0.182 -0.1093)
OKLCHoklch(54.88% 0.212 329)
XYZxyz(26.1419, 14.1275, 40.3717)
Luminance0.1413 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FAC #2FAF32
analogous
#722FAF #AF2FAC #AF2F6C
triadic
#AF2FAC #ACAF2F #2FACAF
tetradic
#AF2FAC #AF722F #2FAF32 #2F6CAF
square
#AF2FAC #AF722F #2FAF32 #2F6CAF
split-complementary
#AF2FAC #6CAF2F #2FAF72
monochromatic
#4F154D #7F227D #AF2FAC #CF4CCC #DC7CDA

Accessibility & contrast

On white

5.49
#AF2FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AF2FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FAC
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FAC#FFFFFF#000000##FFFFFF
##AF2FAC1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5EAF
Deuteranopia (green-blind)
#546FA9
Tritanopia (blue-blind)
#B5426B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2fac;
/* rgb */ color: rgb(175, 47, 172);
/* oklch */ color: oklch(54.9% 0.212 329.0);
Tailwind
colors: {
  custom: {
    50: '#cb75c5',
    500: '#af2fac',
    950: '#000000',
  },
}
SCSS
$custom: #af2fac;
$custom-light: #cb75c5;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fac",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 301.406,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54882,
    "c": 0.21232,
    "h": 329
  },
  "luminance": 0.14126
}

Semantic roles & 50–950 ramp

primary
#AF2FAC
secondary
#75C477
accent
#E14B47
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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