#AF3BA2#AF3BA2

#AF3BA2 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.4% C 0.190 H 332.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#AF3BA2
RGBrgb(175, 59, 162)
HSLhsl(307, 50%, 46%)
HSVhsv(307, 66%, 69%)
CMYKcmyk(0%, 66.3%, 7.4%, 31.4%)
CIE-LABlab(45.43, 58.80, -31.98)
CIE-LCHlch(45.43, 66.93, 331.46°)
OKLaboklab(55.45% 0.169 -0.0876)
OKLCHoklch(55.45% 0.19 332.6)
XYZxyz(25.7648, 14.8525, 35.6852)
Luminance0.1485 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3BA2 #3BAF48
analogous
#823BAF #AF3BA2 #AF3B68
triadic
#AF3BA2 #A2AF3B #3BA2AF
tetradic
#AF3BA2 #AF823B #3BAF48 #3B68AF
square
#AF3BA2 #AF823B #3BAF48 #3B68AF
split-complementary
#AF3BA2 #68AF3B #3BAF82
monochromatic
#531C4D #812C78 #AF3BA2 #C95EBD #D88CD0

Accessibility & contrast

On white

5.29
#AF3BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#AF3BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3BA2
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3BA2#FFFFFF#000000##FFFFFF
##AF3BA21.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#5E719F
Tritanopia (blue-blind)
#B64669
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3ba2;
/* rgb */ color: rgb(175, 59, 162);
/* oklch */ color: oklch(55.4% 0.190 332.6);
Tailwind
colors: {
  custom: {
    50: '#ca7abe',
    500: '#af3ba2',
    950: '#000000',
  },
}
SCSS
$custom: #af3ba2;
$custom-light: #ca7abe;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ba2",
  "rgb": {
    "r": 175,
    "g": 59,
    "b": 162
  },
  "hsl": {
    "h": 306.724,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55447,
    "c": 0.19037,
    "h": 332.6
  },
  "luminance": 0.14851
}

Semantic roles & 50–950 ramp

primary
#AF3BA2
secondary
#83C38A
accent
#D95E4F
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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