#AF399F#AF399F

#AF399F is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.1% C 0.191 H 333.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#AF399F
RGBrgb(175, 57, 159)
HSLhsl(308, 51%, 45%)
HSVhsv(308, 67%, 69%)
CMYKcmyk(0%, 67.4%, 9.1%, 31.4%)
CIE-LABlab(45.01, 59.11, -30.86)
CIE-LCHlch(45.01, 66.68, 332.43°)
OKLaboklab(55.09% 0.171 -0.0844)
OKLCHoklch(55.09% 0.191 333.7)
XYZxyz(25.4005, 14.5455, 34.2639)
Luminance0.1454 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF399F #39AF49
analogous
#8439AF #AF399F #AF3964
triadic
#AF399F #9FAF39 #399FAF
tetradic
#AF399F #AF8439 #39AF49 #3964AF
square
#AF399F #AF8439 #39AF49 #3964AF
split-complementary
#AF399F #64AF39 #39AF84
monochromatic
#531B4B #812A75 #AF399F #CA5BBB #D98ACE

Accessibility & contrast

On white

5.37
#AF399F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#AF399F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF399F
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF399F#FFFFFF#000000##FFFFFF
##AF399F1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365FA2
Deuteranopia (green-blind)
#5F719C
Tritanopia (blue-blind)
#B74367
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af399f;
/* rgb */ color: rgb(175, 57, 159);
/* oklch */ color: oklch(55.1% 0.191 333.7);
Tailwind
colors: {
  custom: {
    50: '#ca79bb',
    500: '#af399f',
    950: '#000000',
  },
}
SCSS
$custom: #af399f;
$custom-light: #ca79bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af399f",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 308.136,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.5509,
    "c": 0.19068,
    "h": 333.7
  },
  "luminance": 0.14543
}

Semantic roles & 50–950 ramp

primary
#AF399F
secondary
#81C38A
accent
#DA614D
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF399F

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

Preview Lab → · Contrast checker → · Palette generator →

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