#AF4FA2#AF4FA2

#AF4FA2 is a mid, vivid purple. Relative luminance 0.173; OKLCH L 57.8% C 0.161 H 332.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF4FA2
RGBrgb(175, 79, 162)
HSLhsl(308, 38%, 50%)
HSVhsv(308, 55%, 69%)
CMYKcmyk(0%, 54.9%, 7.4%, 31.4%)
CIE-LABlab(48.66, 49.98, -26.94)
CIE-LCHlch(48.66, 56.78, 331.67°)
OKLaboklab(57.8% 0.1434 -0.0734)
OKLCHoklch(57.8% 0.161 332.9)
XYZxyz(26.9967, 17.3164, 36.0959)
Luminance0.1731 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FA2 #4FAF5C
analogous
#8C4FAF #AF4FA2 #AF4F72
triadic
#AF4FA2 #A2AF4F #4FA2AF
tetradic
#AF4FA2 #AF8C4F #4FAF5C #4F72AF
square
#AF4FA2 #AF8C4F #4FAF5C #4F72AF
split-complementary
#AF4FA2 #72AF4F #4FAF8C
monochromatic
#5B2954 #853C7B #AF4FA2 #C279B8 #D5A3CF

Accessibility & contrast

On white

4.71
#AF4FA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AF4FA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF4FA2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FA2#FFFFFF#000000##FFFFFF
##AF4FA21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D6BA5
Deuteranopia (green-blind)
#69799F
Tritanopia (blue-blind)
#B65671
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af4fa2;
/* rgb */ color: rgb(175, 79, 162);
/* oklch */ color: oklch(57.8% 0.161 332.9);
Tailwind
colors: {
  custom: {
    50: '#c985bd',
    500: '#af4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #af4fa2;
$custom-light: #c985bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af4fa2",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 308.125,
    "s": 37.795,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57805,
    "c": 0.16109,
    "h": 332.9
  },
  "luminance": 0.17315
}

Semantic roles & 50–950 ramp

primary
#AF4FA2
secondary
#97C39D
accent
#CE6A5A
background
#FCF8FB
surface
#F9F0F6
border
#D2CBD0
text
#130B12
muted
#827C81

Preview Lab

Preview with #AF4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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