#AF4FA6#AF4FA6

#AF4FA6 is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.0% C 0.164 H 331.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#AF4FA6
RGBrgb(175, 79, 166)
HSLhsl(306, 38%, 50%)
HSVhsv(306, 55%, 69%)
CMYKcmyk(0%, 54.9%, 5.1%, 31.4%)
CIE-LABlab(48.84, 50.67, -29.02)
CIE-LCHlch(48.84, 58.39, 330.19°)
OKLaboklab(58% 0.1441 -0.0793)
OKLCHoklch(58% 0.164 331.2)
XYZxyz(27.3580, 17.4609, 37.9983)
Luminance0.1746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FA6 #4FAF58
analogous
#884FAF #AF4FA6 #AF4F76
triadic
#AF4FA6 #A6AF4F #4FA6AF
tetradic
#AF4FA6 #AF884F #4FAF58 #4F76AF
square
#AF4FA6 #AF884F #4FAF58 #4F76AF
split-complementary
#AF4FA6 #76AF4F #4FAF88
monochromatic
#5B2956 #853C7E #AF4FA6 #C279BC #D5A3D1

Accessibility & contrast

On white

4.68
#AF4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AF4FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FA6
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FA6#FFFFFF#000000##FFFFFF
##AF4FA61.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6BA9
Deuteranopia (green-blind)
#6879A3
Tritanopia (blue-blind)
#B55773
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4fa6;
/* rgb */ color: rgb(175, 79, 166);
/* oklch */ color: oklch(58.0% 0.164 331.2);
Tailwind
colors: {
  custom: {
    50: '#c985c0',
    500: '#af4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #af4fa6;
$custom-light: #c985c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fa6",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 305.625,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57996,
    "c": 0.16447,
    "h": 331.2
  },
  "luminance": 0.17459
}

Semantic roles & 50–950 ramp

primary
#AF4FA6
secondary
#97C39B
accent
#CE655A
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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