#AF399E#AF399E

#AF399E is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.0% C 0.190 H 334.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#AF399E
RGBrgb(175, 57, 158)
HSLhsl(309, 51%, 45%)
HSVhsv(309, 67%, 69%)
CMYKcmyk(0%, 67.4%, 9.7%, 31.4%)
CIE-LABlab(44.96, 58.95, -30.33)
CIE-LCHlch(44.96, 66.30, 332.77°)
OKLaboklab(55.04% 0.1709 -0.0829)
OKLCHoklch(55.04% 0.19 334.1)
XYZxyz(25.3141, 14.5109, 33.8088)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF399E #39AF4A
analogous
#8539AF #AF399E #AF3963
triadic
#AF399E #9EAF39 #399EAF
tetradic
#AF399E #AF8539 #39AF4A #3963AF
square
#AF399E #AF8539 #39AF4A #3963AF
split-complementary
#AF399E #63AF39 #39AF85
monochromatic
#531B4B #812A74 #AF399E #CA5BBA #D98ACD

Accessibility & contrast

On white

5.38
#AF399E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#AF399E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF399E
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF399E#FFFFFF#000000##FFFFFF
##AF399E1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375FA1
Deuteranopia (green-blind)
#5F719B
Tritanopia (blue-blind)
#B74266
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af399e;
/* rgb */ color: rgb(175, 57, 158);
/* oklch */ color: oklch(55.0% 0.190 334.1);
Tailwind
colors: {
  custom: {
    50: '#ca79bb',
    500: '#af399e',
    950: '#000000',
  },
}
SCSS
$custom: #af399e;
$custom-light: #ca79bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af399e",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 158
  },
  "hsl": {
    "h": 308.644,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55039,
    "c": 0.18992,
    "h": 334.1
  },
  "luminance": 0.14509
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF399E

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

Preview Lab → · Contrast checker → · Palette generator →

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