#AF3BA8#AF3BA8

#AF3BA8 is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.8% C 0.195 H 330.3°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AF3BA8
RGBrgb(175, 59, 168)
HSLhsl(304, 50%, 46%)
HSVhsv(304, 66%, 69%)
CMYKcmyk(0%, 66.3%, 4%, 31.4%)
CIE-LABlab(45.73, 59.78, -35.07)
CIE-LCHlch(45.73, 69.31, 329.60°)
OKLaboklab(55.76% 0.1695 -0.0965)
OKLCHoklch(55.76% 0.195 330.3)
XYZxyz(26.3109, 15.0710, 38.5614)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3BA8 #3BAF42
analogous
#7C3BAF #AF3BA8 #AF3B6E
triadic
#AF3BA8 #A8AF3B #3BA8AF
tetradic
#AF3BA8 #AF7C3B #3BAF42 #3B6EAF
square
#AF3BA8 #AF7C3B #3BAF42 #3B6EAF
split-complementary
#AF3BA8 #6EAF3B #3BAF7C
monochromatic
#531C50 #812C7C #AF3BA8 #C95EC2 #D88CD4

Accessibility & contrast

On white

5.23
#AF3BA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#AF3BA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3BA8
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3BA8#FFFFFF#000000##FFFFFF
##AF3BA81.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3162AB
Deuteranopia (green-blind)
#5C72A5
Tritanopia (blue-blind)
#B5486C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3ba8;
/* rgb */ color: rgb(175, 59, 168);
/* oklch */ color: oklch(55.8% 0.195 330.3);
Tailwind
colors: {
  custom: {
    50: '#ca7ac2',
    500: '#af3ba8',
    950: '#000000',
  },
}
SCSS
$custom: #af3ba8;
$custom-light: #ca7ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ba8",
  "rgb": {
    "r": 175,
    "g": 59,
    "b": 168
  },
  "hsl": {
    "h": 303.621,
    "s": 49.573,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55761,
    "c": 0.19507,
    "h": 330.3
  },
  "luminance": 0.15069
}

Semantic roles & 50–950 ramp

primary
#AF3BA8
secondary
#83C387
accent
#D9574F
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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