#AF399C#AF399C

#AF399C is a mid, vivid purple. Relative luminance 0.144; OKLCH L 54.9% C 0.188 H 334.9°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#AF399C
RGBrgb(175, 57, 156)
HSLhsl(310, 51%, 45%)
HSVhsv(310, 67%, 69%)
CMYKcmyk(0%, 67.4%, 10.9%, 31.4%)
CIE-LABlab(44.86, 58.64, -29.29)
CIE-LCHlch(44.86, 65.54, 333.46°)
OKLaboklab(54.94% 0.1707 -0.0799)
OKLCHoklch(54.94% 0.188 334.9)
XYZxyz(25.1433, 14.4426, 32.9095)
Luminance0.1444 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF399C #39AF4C
analogous
#8739AF #AF399C #AF3961
triadic
#AF399C #9CAF39 #399CAF
tetradic
#AF399C #AF8739 #39AF4C #3961AF
square
#AF399C #AF8739 #39AF4C #3961AF
split-complementary
#AF399C #61AF39 #39AF87
monochromatic
#531B4A #812A73 #AF399C #CA5BB8 #D98ACC

Accessibility & contrast

On white

5.40
#AF399C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#AF399C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF399C
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF399C#FFFFFF#000000##FFFFFF
##AF399C1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395F9F
Deuteranopia (green-blind)
#607099
Tritanopia (blue-blind)
#B74165
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af399c;
/* rgb */ color: rgb(175, 57, 156);
/* oklch */ color: oklch(54.9% 0.188 334.9);
Tailwind
colors: {
  custom: {
    50: '#ca79b9',
    500: '#af399c',
    950: '#000000',
  },
}
SCSS
$custom: #af399c;
$custom-light: #ca79b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af399c",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 156
  },
  "hsl": {
    "h": 309.661,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54938,
    "c": 0.18842,
    "h": 334.9
  },
  "luminance": 0.14441
}

Semantic roles & 50–950 ramp

primary
#AF399C
secondary
#81C38B
accent
#DA644D
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF399C

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

Preview Lab → · Contrast checker → · Palette generator →

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