#AF4BA2#AF4BA2

#AF4BA2 is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.3% C 0.167 H 332.8°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#AF4BA2
RGBrgb(175, 75, 162)
HSLhsl(308, 40%, 49%)
HSVhsv(308, 57%, 69%)
CMYKcmyk(0%, 57.1%, 7.4%, 31.4%)
CIE-LABlab(47.95, 51.88, -28.04)
CIE-LCHlch(47.95, 58.97, 331.61°)
OKLaboklab(57.29% 0.1489 -0.0765)
OKLCHoklch(57.29% 0.167 332.8)
XYZxyz(26.7169, 16.7566, 36.0026)
Luminance0.1676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BA2 #4BAF58
analogous
#8A4BAF #AF4BA2 #AF4B70
triadic
#AF4BA2 #A2AF4B #4BA2AF
tetradic
#AF4BA2 #AF8A4B #4BAF58 #4B70AF
square
#AF4BA2 #AF8A4B #4BAF58 #4B70AF
split-complementary
#AF4BA2 #70AF4B #4BAF8A
monochromatic
#592653 #84397A #AF4BA2 #C374B9 #D69FCF

Accessibility & contrast

On white

4.83
#AF4BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF4BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4BA2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BA2#FFFFFF#000000##FFFFFF
##AF4BA21.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4869A5
Deuteranopia (green-blind)
#67779F
Tritanopia (blue-blind)
#B6526F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4ba2;
/* rgb */ color: rgb(175, 75, 162);
/* oklch */ color: oklch(57.3% 0.167 332.8);
Tailwind
colors: {
  custom: {
    50: '#c983be',
    500: '#af4ba2',
    950: '#000000',
  },
}
SCSS
$custom: #af4ba2;
$custom-light: #c983be;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ba2",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 307.8,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57287,
    "c": 0.16738,
    "h": 332.8
  },
  "luminance": 0.16755
}

Semantic roles & 50–950 ramp

primary
#AF4BA2
secondary
#93C299
accent
#D06858
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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