#AF3FA2#AF3FA2

#AF3FA2 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 55.9% C 0.185 H 332.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF3FA2
RGBrgb(175, 63, 162)
HSLhsl(307, 47%, 47%)
HSVhsv(307, 64%, 69%)
CMYKcmyk(0%, 64%, 7.4%, 31.4%)
CIE-LABlab(46.01, 57.18, -31.06)
CIE-LCHlch(46.01, 65.07, 331.49°)
OKLaboklab(55.87% 0.1643 -0.085)
OKLCHoklch(55.87% 0.185 332.6)
XYZxyz(25.9783, 15.2796, 35.7564)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FA2 #3FAF4C
analogous
#843FAF #AF3FA2 #AF3F6A
triadic
#AF3FA2 #A2AF3F #3FA2AF
tetradic
#AF3FA2 #AF843F #3FAF4C #3F6AAF
square
#AF3FA2 #AF843F #3FAF4C #3F6AAF
split-complementary
#AF3FA2 #6AAF3F #3FAF84
monochromatic
#551F4F #822F78 #AF3FA2 #C764BC #D791CF

Accessibility & contrast

On white

5.18
#AF3FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AF3FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FA2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FA2#FFFFFF#000000##FFFFFF
##AF3FA21.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B63A5
Deuteranopia (green-blind)
#60739F
Tritanopia (blue-blind)
#B6496B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3fa2;
/* rgb */ color: rgb(175, 63, 162);
/* oklch */ color: oklch(55.9% 0.185 332.6);
Tailwind
colors: {
  custom: {
    50: '#ca7cbe',
    500: '#af3fa2',
    950: '#000000',
  },
}
SCSS
$custom: #af3fa2;
$custom-light: #ca7cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fa2",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 306.964,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5587,
    "c": 0.18499,
    "h": 332.6
  },
  "luminance": 0.15278
}

Semantic roles & 50–950 ramp

primary
#AF3FA2
secondary
#87C38E
accent
#D76151
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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