#AF2BAF#AF2BAF

#AF2BAF is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.219 H 328.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF2BAF
RGBrgb(175, 43, 175)
HSLhsl(300, 61%, 43%)
HSVhsv(300, 75%, 69%)
CMYKcmyk(0%, 75.4%, 0%, 31.4%)
CIE-LABlab(44.15, 66.49, -41.72)
CIE-LCHlch(44.15, 78.50, 327.89°)
OKLaboklab(54.74% 0.1856 -0.1157)
OKLCHoklch(54.74% 0.219 328.1)
XYZxyz(26.2806, 13.9388, 41.8554)
Luminance0.1394 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BAF #2BAF2B
analogous
#6D2BAF #AF2BAF #AF2B6D
triadic
#AF2BAF #AFAF2B #2BAFAF
tetradic
#AF2BAF #AF6D2B #2BAF2B #2B6DAF
square
#AF2BAF #AF6D2B #2BAF2B #2B6DAF
split-complementary
#AF2BAF #6DAF2B #2BAF6D
monochromatic
#4D134D #7E1F7E #AF2BAF #D146D1 #DE77DE

Accessibility & contrast

On white

5.54
#AF2BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AF2BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BAF
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BAF#FFFFFF#000000##FFFFFF
##AF2BAF1.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5DB3
Deuteranopia (green-blind)
#506EAC
Tritanopia (blue-blind)
#B5416C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2baf;
/* rgb */ color: rgb(175, 43, 175);
/* oklch */ color: oklch(54.7% 0.219 328.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c7',
    500: '#af2baf',
    950: '#000000',
  },
}
SCSS
$custom: #af2baf;
$custom-light: #cb73c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2baf",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54743,
    "c": 0.21867,
    "h": 328.1
  },
  "luminance": 0.13937
}

Semantic roles & 50–950 ramp

primary
#AF2BAF
secondary
#70C570
accent
#E44444
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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