#AF5FAC#AF5FAC

#AF5FAC is a mid, vivid purple. Relative luminance 0.203; OKLCH L 60.5% C 0.143 H 328.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF5FAC
RGBrgb(175, 95, 172)
HSLhsl(302, 33%, 53%)
HSVhsv(302, 46%, 69%)
CMYKcmyk(0%, 45.7%, 1.7%, 31.4%)
CIE-LABlab(52.15, 43.69, -27.39)
CIE-LCHlch(52.15, 51.57, 327.92°)
OKLaboklab(60.54% 0.1223 -0.0748)
OKLCHoklch(60.54% 0.143 328.5)
XYZxyz(29.2174, 20.2785, 41.3969)
Luminance0.2028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FAC #5FAF62
analogous
#8A5FAF #AF5FAC #AF5F84
triadic
#AF5FAC #ACAF5F #5FACAF
tetradic
#AF5FAC #AF8A5F #5FAF62 #5F84AF
square
#AF5FAC #AF8A5F #5FAF62 #5F84AF
split-complementary
#AF5FAC #84AF5F #5FAF8A
monochromatic
#623161 #8B4689 #AF5FAC #C388C1 #D8B1D6

Accessibility & contrast

On white

4.15
#AF5FAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#AF5FAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FAC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FAC#FFFFFF#000000##000000
##AF5FAC1.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A76AF
Deuteranopia (green-blind)
#7080AA
Tritanopia (blue-blind)
#B4667D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af5fac;
/* rgb */ color: rgb(175, 95, 172);
/* oklch */ color: oklch(60.5% 0.143 328.5);
Tailwind
colors: {
  custom: {
    50: '#c98fc5',
    500: '#af5fac',
    950: '#000000',
  },
}
SCSS
$custom: #af5fac;
$custom-light: #c98fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fac",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 302.25,
    "s": 33.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60538,
    "c": 0.14331,
    "h": 328.5
  },
  "luminance": 0.20277
}

Semantic roles & 50–950 ramp

primary
#AF5FAC
secondary
#A4C6A5
accent
#C9625E
background
#FCF8FC
surface
#F8F0F8
border
#D1CBD1
text
#130D13
muted
#827D82

Preview Lab

Preview with #AF5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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