#AF308F#AF308F

#AF308F is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.5% C 0.190 H 339.9°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF308F
RGBrgb(175, 48, 143)
HSLhsl(315, 57%, 44%)
HSVhsv(315, 73%, 69%)
CMYKcmyk(0%, 72.6%, 18.3%, 31.4%)
CIE-LABlab(43.08, 60.02, -24.22)
CIE-LCHlch(43.08, 64.72, 338.02°)
OKLaboklab(53.45% 0.1788 -0.0654)
OKLCHoklch(53.45% 0.19 339.9)
XYZxyz(23.6947, 13.2133, 27.2838)
Luminance0.1321 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF308F #30AF50
analogous
#8F30AF #AF308F #AF304F
triadic
#AF308F #8FAF30 #308FAF
tetradic
#AF308F #AF8F30 #30AF50 #304FAF
square
#AF308F #AF8F30 #30AF50 #304FAF
split-complementary
#AF308F #4FAF30 #30AF8F
monochromatic
#4F1641 #7F2368 #AF308F #CE4EAE #DC7EC4

Accessibility & contrast

On white

5.77
#AF308F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF308F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF308F
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF308F#FFFFFF#000000##FFFFFF
##AF308F1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385992
Deuteranopia (green-blind)
#616D8C
Tritanopia (blue-blind)
#B9345C
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af308f;
/* rgb */ color: rgb(175, 48, 143);
/* oklch */ color: oklch(53.5% 0.190 339.9);
Tailwind
colors: {
  custom: {
    50: '#cb74b0',
    500: '#af308f',
    950: '#000000',
  },
}
SCSS
$custom: #af308f;
$custom-light: #cb74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#af308f",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 143
  },
  "hsl": {
    "h": 315.118,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53451,
    "c": 0.19036,
    "h": 339.9
  },
  "luminance": 0.13211
}

Semantic roles & 50–950 ramp

primary
#AF308F
secondary
#76C48A
accent
#E06E48
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF308F

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

Preview Lab → · Contrast checker → · Palette generator →

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