#AF2FB3#AF2FB3

#AF2FB3 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.3% C 0.218 H 326.7°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF2FB3
RGBrgb(175, 47, 179)
HSLhsl(298, 58%, 44%)
HSVhsv(298, 74%, 70%)
CMYKcmyk(2.2%, 73.7%, 0%, 29.8%)
CIE-LABlab(44.81, 65.91, -43.03)
CIE-LCHlch(44.81, 78.71, 326.86°)
OKLaboklab(55.29% 0.182 -0.1195)
OKLCHoklch(55.29% 0.218 326.7)
XYZxyz(26.8319, 14.4035, 44.0060)
Luminance0.1440 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FB3 #33B32F
analogous
#6D2FB3 #AF2FB3 #B32F75
triadic
#AF2FB3 #B3AF2F #2FB3AF
tetradic
#AF2FB3 #B36D2F #33B32F #2F75B3
square
#AF2FB3 #B36D2F #33B32F #2F75B3
split-complementary
#AF2FB3 #75B32F #2FB36D
monochromatic
#501652 #802283 #AF2FB3 #CD4FD1 #DB7FDD

Accessibility & contrast

On white

5.41
#AF2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF2FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FB3
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FB3#FFFFFF#000000##FFFFFF
##AF2FB31.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0960B7
Deuteranopia (green-blind)
#4F70B0
Tritanopia (blue-blind)
#B4456F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2fb3;
/* rgb */ color: rgb(175, 47, 179);
/* oklch */ color: oklch(55.3% 0.218 326.7);
Tailwind
colors: {
  custom: {
    50: '#cb75ca',
    500: '#af2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #af2fb3;
$custom-light: #cb75ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fb3",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 298.182,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55288,
    "c": 0.21771,
    "h": 326.7
  },
  "luminance": 0.14402
}

Semantic roles & 50–950 ramp

primary
#AF2FB3
secondary
#7AC678
accent
#E2464B
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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