#AF379D#AF379D

#AF379D is a mid, vivid purple. Relative luminance 0.143; OKLCH L 54.8% C 0.192 H 334.5°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF379D
RGBrgb(175, 55, 157)
HSLhsl(309, 52%, 45%)
HSVhsv(309, 69%, 69%)
CMYKcmyk(0%, 68.6%, 10.3%, 31.4%)
CIE-LABlab(44.64, 59.56, -30.24)
CIE-LCHlch(44.64, 66.79, 333.08°)
OKLaboklab(54.79% 0.173 -0.0826)
OKLCHoklch(54.79% 0.192 334.5)
XYZxyz(25.1314, 14.2828, 33.3250)
Luminance0.1428 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF379D #37AF49
analogous
#8537AF #AF379D #AF3761
triadic
#AF379D #9DAF37 #379DAF
tetradic
#AF379D #AF8537 #37AF49 #3761AF
square
#AF379D #AF8537 #37AF49 #3761AF
split-complementary
#AF379D #61AF37 #37AF85
monochromatic
#521A49 #802873 #AF379D #CB59BA #D987CD

Accessibility & contrast

On white

5.45
#AF379D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF379D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF379D
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF379D#FFFFFF#000000##FFFFFF
##AF379D1.005.453.865.45
#FFFFFF5.451.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365EA0
Deuteranopia (green-blind)
#5F709A
Tritanopia (blue-blind)
#B74065
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af379d;
/* rgb */ color: rgb(175, 55, 157);
/* oklch */ color: oklch(54.8% 0.192 334.5);
Tailwind
colors: {
  custom: {
    50: '#ca78ba',
    500: '#af379d',
    950: '#000000',
  },
}
SCSS
$custom: #af379d;
$custom-light: #ca78ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af379d",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 157
  },
  "hsl": {
    "h": 309,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5479,
    "c": 0.19172,
    "h": 334.5
  },
  "luminance": 0.14281
}

Semantic roles & 50–950 ramp

primary
#AF379D
secondary
#7FC389
accent
#DC624C
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A11
muted
#827C80

Preview Lab

Preview with #AF379D

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

Preview Lab → · Contrast checker → · Palette generator →

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