#AF3FB2#AF3FB2

#AF3FB2 is a mid, vivid purple. Relative luminance 0.159; OKLCH L 56.7% C 0.198 H 326.7°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF3FB2
RGBrgb(175, 63, 178)
HSLhsl(298, 48%, 47%)
HSVhsv(298, 65%, 70%)
CMYKcmyk(1.7%, 64.6%, 0%, 30.2%)
CIE-LABlab(46.82, 59.88, -39.24)
CIE-LCHlch(46.82, 71.59, 326.76°)
OKLaboklab(56.72% 0.1656 -0.1086)
OKLCHoklch(56.72% 0.198 326.7)
XYZxyz(27.4921, 15.8851, 43.7289)
Luminance0.1588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FB2 #42B23F
analogous
#763FB2 #AF3FB2 #B23F7B
triadic
#AF3FB2 #B2AF3F #3FB2AF
tetradic
#AF3FB2 #B2763F #42B23F #3F7BB2
square
#AF3FB2 #B2763F #42B23F #3F7BB2
split-complementary
#AF3FB2 #7BB23F #3FB276
monochromatic
#561F58 #832F85 #AF3FB2 #C666C9 #D793D9

Accessibility & contrast

On white

5.03
#AF3FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#AF3FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FB2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FB2#FFFFFF#000000##FFFFFF
##AF3FB21.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D66B5
Deuteranopia (green-blind)
#5974AF
Tritanopia (blue-blind)
#B44F73
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af3fb2;
/* rgb */ color: rgb(175, 63, 178);
/* oklch */ color: oklch(56.7% 0.198 326.7);
Tailwind
colors: {
  custom: {
    50: '#ca7cc9',
    500: '#af3fb2',
    950: '#000000',
  },
}
SCSS
$custom: #af3fb2;
$custom-light: #ca7cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fb2",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 298.435,
    "s": 47.718,
    "l": 47.255
  },
  "oklch": {
    "l": 0.5672,
    "c": 0.198,
    "h": 326.7
  },
  "luminance": 0.15883
}

Semantic roles & 50–950 ramp

primary
#AF3FB2
secondary
#8AC489
accent
#D75054
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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