#AF3098#AF3098

#AF3098 is a mid, vivid pink. Relative luminance 0.135; OKLCH L 53.9% C 0.197 H 336.3°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF3098
RGBrgb(175, 48, 152)
HSLhsl(311, 57%, 44%)
HSVhsv(311, 73%, 69%)
CMYKcmyk(0%, 72.6%, 13.1%, 31.4%)
CIE-LABlab(43.50, 61.31, -29.01)
CIE-LCHlch(43.50, 67.83, 334.68°)
OKLaboklab(53.89% 0.1799 -0.079)
OKLCHoklch(53.89% 0.197 336.3)
XYZxyz(24.4040, 13.4971, 31.0196)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3098 #30AF47
analogous
#8630AF #AF3098 #AF3058
triadic
#AF3098 #98AF30 #3098AF
tetradic
#AF3098 #AF8630 #30AF47 #3058AF
square
#AF3098 #AF8630 #30AF47 #3058AF
split-complementary
#AF3098 #58AF30 #30AF86
monochromatic
#4F1645 #7F236E #AF3098 #CE4EB7 #DC7ECB

Accessibility & contrast

On white

5.68
#AF3098 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF3098 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3098
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3098#FFFFFF#000000##FFFFFF
##AF30981.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325B9B
Deuteranopia (green-blind)
#5E6E95
Tritanopia (blue-blind)
#B83960
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af3098;
/* rgb */ color: rgb(175, 48, 152);
/* oklch */ color: oklch(53.9% 0.197 336.3);
Tailwind
colors: {
  custom: {
    50: '#cb74b6',
    500: '#af3098',
    950: '#000000',
  },
}
SCSS
$custom: #af3098;
$custom-light: #cb74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#af3098",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 152
  },
  "hsl": {
    "h": 310.866,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53892,
    "c": 0.19652,
    "h": 336.3
  },
  "luminance": 0.13495
}

Semantic roles & 50–950 ramp

primary
#AF3098
secondary
#76C485
accent
#E06348
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF3098

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

Preview Lab → · Contrast checker → · Palette generator →

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