#AF4BA4#AF4BA4

#AF4BA4 is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.4% C 0.169 H 332.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#AF4BA4
RGBrgb(175, 75, 164)
HSLhsl(307, 40%, 49%)
HSVhsv(307, 57%, 69%)
CMYKcmyk(0%, 57.1%, 6.3%, 31.4%)
CIE-LABlab(48.04, 52.21, -29.08)
CIE-LCHlch(48.04, 59.77, 330.89°)
OKLaboklab(57.38% 0.1492 -0.0794)
OKLCHoklch(57.38% 0.169 332)
XYZxyz(26.8960, 16.8283, 36.9463)
Luminance0.1683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BA4 #4BAF56
analogous
#884BAF #AF4BA4 #AF4B72
triadic
#AF4BA4 #A4AF4B #4BA4AF
tetradic
#AF4BA4 #AF884B #4BAF56 #4B72AF
square
#AF4BA4 #AF884B #4BAF56 #4B72AF
split-complementary
#AF4BA4 #72AF4B #4BAF88
monochromatic
#592654 #84397C #AF4BA4 #C374BB #D69FD0

Accessibility & contrast

On white

4.81
#AF4BA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#AF4BA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4BA4
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BA4#FFFFFF#000000##FFFFFF
##AF4BA41.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4769A7
Deuteranopia (green-blind)
#6677A1
Tritanopia (blue-blind)
#B65370
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af4ba4;
/* rgb */ color: rgb(175, 75, 164);
/* oklch */ color: oklch(57.4% 0.169 332.0);
Tailwind
colors: {
  custom: {
    50: '#c983bf',
    500: '#af4ba4',
    950: '#000000',
  },
}
SCSS
$custom: #af4ba4;
$custom-light: #c983bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ba4",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 164
  },
  "hsl": {
    "h": 306.6,
    "s": 40,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57384,
    "c": 0.16904,
    "h": 332
  },
  "luminance": 0.16826
}

Semantic roles & 50–950 ramp

primary
#AF4BA4
secondary
#93C299
accent
#D06558
background
#FCF8FB
surface
#F9EFF7
border
#D2CAD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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