#AF3798#AF3798

#AF3798 is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.5% C 0.188 H 336.5°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#AF3798
RGBrgb(175, 55, 152)
HSLhsl(312, 52%, 45%)
HSVhsv(312, 69%, 69%)
CMYKcmyk(0%, 68.6%, 13.1%, 31.4%)
CIE-LABlab(44.40, 58.79, -27.61)
CIE-LCHlch(44.40, 64.95, 334.84°)
OKLaboklab(54.54% 0.1724 -0.0751)
OKLCHoklch(54.54% 0.188 336.5)
XYZxyz(24.7132, 14.1155, 31.1227)
Luminance0.1411 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3798 #37AF4E
analogous
#8A37AF #AF3798 #AF375C
triadic
#AF3798 #98AF37 #3798AF
tetradic
#AF3798 #AF8A37 #37AF4E #375CAF
square
#AF3798 #AF8A37 #37AF4E #375CAF
split-complementary
#AF3798 #5CAF37 #37AF8A
monochromatic
#521A47 #802870 #AF3798 #CB59B5 #D987CA

Accessibility & contrast

On white

5.49
#AF3798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AF3798 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3798
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3798#FFFFFF#000000##FFFFFF
##AF37981.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395D9B
Deuteranopia (green-blind)
#617095
Tritanopia (blue-blind)
#B83E63
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af3798;
/* rgb */ color: rgb(175, 55, 152);
/* oklch */ color: oklch(54.5% 0.188 336.5);
Tailwind
colors: {
  custom: {
    50: '#ca78b6',
    500: '#af3798',
    950: '#000000',
  },
}
SCSS
$custom: #af3798;
$custom-light: #ca78b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3798",
  "rgb": {
    "r": 175,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 311.5,
    "s": 52.174,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54541,
    "c": 0.18807,
    "h": 336.5
  },
  "luminance": 0.14113
}

Semantic roles & 50–950 ramp

primary
#AF3798
secondary
#7FC38C
accent
#DC684C
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF3798

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

Preview Lab → · Contrast checker → · Palette generator →

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