#AF5BA2#AF5BA2

#AF5BA2 is a mid, vivid purple. Relative luminance 0.192; OKLCH L 59.5% C 0.141 H 333.3°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#AF5BA2
RGBrgb(175, 91, 162)
HSLhsl(309, 34%, 52%)
HSVhsv(309, 48%, 69%)
CMYKcmyk(0%, 48%, 7.4%, 31.4%)
CIE-LABlab(50.93, 43.98, -23.43)
CIE-LCHlch(50.93, 49.83, 331.96°)
OKLaboklab(59.49% 0.1261 -0.0635)
OKLCHoklch(59.49% 0.141 333.3)
XYZxyz(27.9418, 19.2065, 36.4109)
Luminance0.1920 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BA2 #5BAF68
analogous
#925BAF #AF5BA2 #AF5B78
triadic
#AF5BA2 #A2AF5B #5BA2AF
tetradic
#AF5BA2 #AF925B #5BAF68 #5B78AF
square
#AF5BA2 #AF925B #5BAF68 #5B78AF
split-complementary
#AF5BA2 #78AF5B #5BAF92
monochromatic
#612F59 #8A437F #AF5BA2 #C384B9 #D7ADD1

Accessibility & contrast

On white

4.34
#AF5BA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#AF5BA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BA2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BA2#FFFFFF#000000##000000
##AF5BA21.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A72A4
Deuteranopia (green-blind)
#717EA0
Tritanopia (blue-blind)
#B66077
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #af5ba2;
/* rgb */ color: rgb(175, 91, 162);
/* oklch */ color: oklch(59.5% 0.141 333.3);
Tailwind
colors: {
  custom: {
    50: '#c98cbd',
    500: '#af5ba2',
    950: '#000000',
  },
}
SCSS
$custom: #af5ba2;
$custom-light: #c98cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#af5ba2",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 162
  },
  "hsl": {
    "h": 309.286,
    "s": 34.426,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59489,
    "c": 0.14117,
    "h": 333.3
  },
  "luminance": 0.19205
}

Semantic roles & 50–950 ramp

primary
#AF5BA2
secondary
#A1C5A6
accent
#CB6E5D
background
#FCF8FB
surface
#F8F0F6
border
#D1CBD0
text
#130C12
muted
#827D81

Preview Lab

Preview with #AF5BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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