#AF2FB4#AF2FB4

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

Color values

HEX#AF2FB4
RGBrgb(175, 47, 180)
HSLhsl(298, 59%, 45%)
HSVhsv(298, 74%, 71%)
CMYKcmyk(2.8%, 73.9%, 0%, 29.4%)
CIE-LABlab(44.86, 66.07, -43.53)
CIE-LCHlch(44.86, 79.12, 326.62°)
OKLaboklab(55.35% 0.182 -0.121)
OKLCHoklch(55.35% 0.219 326.4)
XYZxyz(26.9334, 14.4441, 44.5406)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FB4 #34B42F
analogous
#6C2FB4 #AF2FB4 #B42F77
triadic
#AF2FB4 #B4AF2F #2FB4AF
tetradic
#AF2FB4 #B46C2F #34B42F #2F77B4
square
#AF2FB4 #B46C2F #34B42F #2F77B4
split-complementary
#AF2FB4 #77B42F #2FB46C
monochromatic
#511653 #802283 #AF2FB4 #CC4FD1 #DA80DE

Accessibility & contrast

On white

5.40
#AF2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AF2FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FB4
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FB4#FFFFFF#000000##FFFFFF
##AF2FB41.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0660B8
Deuteranopia (green-blind)
#4F70B1
Tritanopia (blue-blind)
#B4456F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2fb4;
/* rgb */ color: rgb(175, 47, 180);
/* oklch */ color: oklch(55.3% 0.218 326.4);
Tailwind
colors: {
  custom: {
    50: '#cb75cb',
    500: '#af2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #af2fb4;
$custom-light: #cb75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fb4",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 297.744,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55347,
    "c": 0.2185,
    "h": 326.4
  },
  "luminance": 0.14442
}

Semantic roles & 50–950 ramp

primary
#AF2FB4
secondary
#7BC778
accent
#E2464C
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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