#AF399D#AF399D

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

Color values

HEX#AF399D
RGBrgb(175, 57, 157)
HSLhsl(309, 51%, 45%)
HSVhsv(309, 67%, 69%)
CMYKcmyk(0%, 67.4%, 10.3%, 31.4%)
CIE-LABlab(44.91, 58.79, -29.81)
CIE-LCHlch(44.91, 65.92, 333.11°)
OKLaboklab(54.99% 0.1708 -0.0814)
OKLCHoklch(54.99% 0.189 334.5)
XYZxyz(25.2283, 14.4766, 33.3573)
Luminance0.1447 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF399D #39AF4B
analogous
#8639AF #AF399D #AF3962
triadic
#AF399D #9DAF39 #399DAF
tetradic
#AF399D #AF8639 #39AF4B #3962AF
square
#AF399D #AF8639 #39AF4B #3962AF
split-complementary
#AF399D #62AF39 #39AF86
monochromatic
#531B4A #812A74 #AF399D #CA5BB9 #D98ACD

Accessibility & contrast

On white

5.39
#AF399D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF399D
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF399D#FFFFFF#000000##FFFFFF
##AF399D1.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385FA0
Deuteranopia (green-blind)
#60709A
Tritanopia (blue-blind)
#B74266
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af399d;
/* rgb */ color: rgb(175, 57, 157);
/* oklch */ color: oklch(55.0% 0.189 334.5);
Tailwind
colors: {
  custom: {
    50: '#ca79ba',
    500: '#af399d',
    950: '#000000',
  },
}
SCSS
$custom: #af399d;
$custom-light: #ca79ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af399d",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 157
  },
  "hsl": {
    "h": 309.153,
    "s": 50.862,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54989,
    "c": 0.18917,
    "h": 334.5
  },
  "luminance": 0.14475
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF399D

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

Preview Lab → · Contrast checker → · Palette generator →

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