#AF379F#AF379F

#AF379F is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.9% C 0.193 H 333.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AF379F
RGBrgb(175, 55, 159)
HSLhsl(308, 52%, 45%)
HSVhsv(308, 69%, 69%)
CMYKcmyk(0%, 68.6%, 9.1%, 31.4%)
CIE-LABlab(44.73, 59.87, -31.28)
CIE-LCHlch(44.73, 67.55, 332.41°)
OKLaboklab(54.89% 0.1732 -0.0856)
OKLCHoklch(54.89% 0.193 333.7)
XYZxyz(25.3036, 14.3516, 34.2316)
Luminance0.1435 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF379F #37AF47
analogous
#8337AF #AF379F #AF3763
triadic
#AF379F #9FAF37 #379FAF
tetradic
#AF379F #AF8337 #37AF47 #3763AF
square
#AF379F #AF8337 #37AF47 #3763AF
split-complementary
#AF379F #63AF37 #37AF83
monochromatic
#521A4A #802875 #AF379F #CB59BB #D987CE

Accessibility & contrast

On white

5.43
#AF379F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF379F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF379F
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF379F#FFFFFF#000000##FFFFFF
##AF379F1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345FA2
Deuteranopia (green-blind)
#5E709C
Tritanopia (blue-blind)
#B74166
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af379f;
/* rgb */ color: rgb(175, 55, 159);
/* oklch */ color: oklch(54.9% 0.193 333.7);
Tailwind
colors: {
  custom: {
    50: '#ca78bb',
    500: '#af379f',
    950: '#000000',
  },
}
SCSS
$custom: #af379f;
$custom-light: #ca78bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af379f",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 159
  },
  "hsl": {
    "h": 308,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54893,
    "c": 0.19321,
    "h": 333.7
  },
  "luminance": 0.1435
}

Semantic roles & 50–950 ramp

primary
#AF379F
secondary
#7FC388
accent
#DC5F4C
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF379F

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

Preview Lab → · Contrast checker → · Palette generator →

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