#AF379E#AF379E

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

Color values

HEX#AF379E
RGBrgb(175, 55, 158)
HSLhsl(309, 52%, 45%)
HSVhsv(309, 69%, 69%)
CMYKcmyk(0%, 68.6%, 9.7%, 31.4%)
CIE-LABlab(44.68, 59.71, -30.76)
CIE-LCHlch(44.68, 67.17, 332.75°)
OKLaboklab(54.84% 0.1731 -0.0841)
OKLCHoklch(54.84% 0.192 334.1)
XYZxyz(25.2171, 14.3170, 33.7765)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF379E #37AF48
analogous
#8437AF #AF379E #AF3762
triadic
#AF379E #9EAF37 #379EAF
tetradic
#AF379E #AF8437 #37AF48 #3762AF
square
#AF379E #AF8437 #37AF48 #3762AF
split-complementary
#AF379E #62AF37 #37AF84
monochromatic
#521A4A #802874 #AF379E #CB59BB #D987CE

Accessibility & contrast

On white

5.44
#AF379E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF379E
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF379E#FFFFFF#000000##FFFFFF
##AF379E1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355EA1
Deuteranopia (green-blind)
#5E709B
Tritanopia (blue-blind)
#B74166
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af379e;
/* rgb */ color: rgb(175, 55, 158);
/* oklch */ color: oklch(54.8% 0.192 334.1);
Tailwind
colors: {
  custom: {
    50: '#ca78bb',
    500: '#af379e',
    950: '#000000',
  },
}
SCSS
$custom: #af379e;
$custom-light: #ca78bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af379e",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 158
  },
  "hsl": {
    "h": 308.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54841,
    "c": 0.19246,
    "h": 334.1
  },
  "luminance": 0.14315
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF379E

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

Preview Lab → · Contrast checker → · Palette generator →

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