#AF5AB2#AF5AB2

#AF5AB2 is a mid, vivid purple. Relative luminance 0.196; OKLCH L 60.1% C 0.157 H 326.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF5AB2
RGBrgb(175, 90, 178)
HSLhsl(298, 36%, 53%)
HSVhsv(298, 49%, 70%)
CMYKcmyk(1.7%, 49.4%, 0%, 30.2%)
CIE-LABlab(51.43, 47.39, -32.00)
CIE-LCHlch(51.43, 57.18, 325.97°)
OKLaboklab(60.09% 0.1306 -0.0879)
OKLCHoklch(60.09% 0.157 326)
XYZxyz(29.3706, 19.6422, 44.3551)
Luminance0.1964 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5AB2 #5DB25A
analogous
#835AB2 #AF5AB2 #B25A89
triadic
#AF5AB2 #B2AF5A #5AB2AF
tetradic
#AF5AB2 #B2835A #5DB25A #5A89B2
square
#AF5AB2 #B2835A #5DB25A #5A89B2
split-complementary
#AF5AB2 #89B25A #5AB283
monochromatic
#612E63 #8A428D #AF5AB2 #C384C5 #D7ADD9

Accessibility & contrast

On white

4.26
#AF5AB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#AF5AB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5AB2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5AB2#FFFFFF#000000##000000
##AF5AB21.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5174B5
Deuteranopia (green-blind)
#6A7EAF
Tritanopia (blue-blind)
#B3647E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #af5ab2;
/* rgb */ color: rgb(175, 90, 178);
/* oklch */ color: oklch(60.1% 0.157 326.0);
Tailwind
colors: {
  custom: {
    50: '#c98cc9',
    500: '#af5ab2',
    950: '#000000',
  },
}
SCSS
$custom: #af5ab2;
$custom-light: #c98cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ab2",
  "rgb": {
    "r": 175,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 297.955,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60091,
    "c": 0.15743,
    "h": 326
  },
  "luminance": 0.19641
}

Semantic roles & 50–950 ramp

primary
#AF5AB2
secondary
#A2C7A1
accent
#CC5B5F
background
#FCF8FC
surface
#F9F0F8
border
#D2CBD1
text
#130C13
muted
#827D82

Preview Lab

Preview with #AF5AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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