#AF2FAF#AF2FAF

#AF2FAF is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.1% C 0.215 H 328.0°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#AF2FAF
RGBrgb(175, 47, 175)
HSLhsl(300, 58%, 44%)
HSVhsv(300, 73%, 69%)
CMYKcmyk(0%, 73.1%, 0%, 31.4%)
CIE-LABlab(44.58, 65.24, -41.03)
CIE-LCHlch(44.58, 77.07, 327.83°)
OKLaboklab(55.05% 0.182 -0.1137)
OKLCHoklch(55.05% 0.215 328)
XYZxyz(26.4332, 14.2441, 41.9063)
Luminance0.1424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FAF #2FAF2F
analogous
#6F2FAF #AF2FAF #AF2F6F
triadic
#AF2FAF #AFAF2F #2FAFAF
tetradic
#AF2FAF #AF6F2F #2FAF2F #2F6FAF
square
#AF2FAF #AF6F2F #2FAF2F #2F6FAF
split-complementary
#AF2FAF #6FAF2F #2FAF6F
monochromatic
#4F154F #7F227F #AF2FAF #CF4CCF #DC7CDC

Accessibility & contrast

On white

5.46
#AF2FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AF2FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FAF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FAF#FFFFFF#000000##FFFFFF
##AF2FAF1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155FB2
Deuteranopia (green-blind)
#526FAC
Tritanopia (blue-blind)
#B5436D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2faf;
/* rgb */ color: rgb(175, 47, 175);
/* oklch */ color: oklch(55.1% 0.215 328.0);
Tailwind
colors: {
  custom: {
    50: '#cb75c7',
    500: '#af2faf',
    950: '#000000',
  },
}
SCSS
$custom: #af2faf;
$custom-light: #cb75c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2faf",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55054,
    "c": 0.21463,
    "h": 328
  },
  "luminance": 0.14242
}

Semantic roles & 50–950 ramp

primary
#AF2FAF
secondary
#75C475
accent
#E14747
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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