#AF4FB2#AF4FB2

#AF4FB2 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.6% C 0.175 H 326.4°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#AF4FB2
RGBrgb(175, 79, 178)
HSLhsl(298, 39%, 50%)
HSVhsv(298, 56%, 70%)
CMYKcmyk(1.7%, 55.6%, 0%, 30.2%)
CIE-LABlab(49.40, 52.80, -35.18)
CIE-LCHlch(49.40, 63.45, 326.33°)
OKLaboklab(58.6% 0.1457 -0.097)
OKLCHoklch(58.6% 0.175 326.4)
XYZxyz(28.5105, 17.9219, 44.0684)
Luminance0.1792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FB2 #52B24F
analogous
#7D4FB2 #AF4FB2 #B24F83
triadic
#AF4FB2 #B2AF4F #4FB2AF
tetradic
#AF4FB2 #B27D4F #52B24F #4F83B2
square
#AF4FB2 #B27D4F #52B24F #4F83B2
split-complementary
#AF4FB2 #83B24F #4FB27D
monochromatic
#5C295E #863C88 #AF4FB2 #C27AC5 #D6A4D7

Accessibility & contrast

On white

4.58
#AF4FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#AF4FB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FB2
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FB2#FFFFFF#000000##000000
##AF4FB21.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#436EB5
Deuteranopia (green-blind)
#627AAF
Tritanopia (blue-blind)
#B35B79
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af4fb2;
/* rgb */ color: rgb(175, 79, 178);
/* oklch */ color: oklch(58.6% 0.175 326.4);
Tailwind
colors: {
  custom: {
    50: '#c985c9',
    500: '#af4fb2',
    950: '#000000',
  },
}
SCSS
$custom: #af4fb2;
$custom-light: #c985c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fb2",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 298.182,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58596,
    "c": 0.17504,
    "h": 326.4
  },
  "luminance": 0.1792
}

Semantic roles & 50–950 ramp

primary
#AF4FB2
secondary
#9AC498
accent
#CF595C
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130B13
muted
#827C82

Preview Lab

Preview with #AF4FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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