#AF308D#AF308D

#AF308D is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.4% C 0.189 H 340.7°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#AF308D
RGBrgb(175, 48, 141)
HSLhsl(316, 57%, 44%)
HSVhsv(316, 73%, 69%)
CMYKcmyk(0%, 72.6%, 19.4%, 31.4%)
CIE-LABlab(42.99, 59.74, -23.15)
CIE-LCHlch(42.99, 64.06, 338.82°)
OKLaboklab(53.36% 0.1785 -0.0623)
OKLCHoklch(53.36% 0.189 340.7)
XYZxyz(23.5445, 13.1533, 26.4930)
Luminance0.1315 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF308D #30AF52
analogous
#9130AF #AF308D #AF304D
triadic
#AF308D #8DAF30 #308DAF
tetradic
#AF308D #AF9130 #30AF52 #304DAF
square
#AF308D #AF9130 #30AF52 #304DAF
split-complementary
#AF308D #4DAF30 #30AF91
monochromatic
#4F1640 #7F2366 #AF308D #CE4EAC #DC7EC2

Accessibility & contrast

On white

5.78
#AF308D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#AF308D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF308D
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF308D#FFFFFF#000000##FFFFFF
##AF308D1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5990
Deuteranopia (green-blind)
#626D8A
Tritanopia (blue-blind)
#BA335A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af308d;
/* rgb */ color: rgb(175, 48, 141);
/* oklch */ color: oklch(53.4% 0.189 340.7);
Tailwind
colors: {
  custom: {
    50: '#cb74ae',
    500: '#af308d',
    950: '#000000',
  },
}
SCSS
$custom: #af308d;
$custom-light: #cb74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af308d",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 316.063,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53357,
    "c": 0.18906,
    "h": 340.7
  },
  "luminance": 0.13151
}

Semantic roles & 50–950 ramp

primary
#AF308D
secondary
#76C48B
accent
#E07048
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF308D

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

Preview Lab → · Contrast checker → · Palette generator →

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