#AF308C#AF308C

#AF308C is a mid, vivid pink. Relative luminance 0.131; OKLCH L 53.3% C 0.188 H 341.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#AF308C
RGBrgb(175, 48, 140)
HSLhsl(317, 57%, 44%)
HSVhsv(317, 73%, 69%)
CMYKcmyk(0%, 72.6%, 20%, 31.4%)
CIE-LABlab(42.95, 59.60, -22.61)
CIE-LCHlch(42.95, 63.74, 339.23°)
OKLaboklab(53.31% 0.1783 -0.0608)
OKLCHoklch(53.31% 0.188 341.2)
XYZxyz(23.4705, 13.1236, 26.1029)
Luminance0.1312 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF308C #30AF53
analogous
#9230AF #AF308C #AF304C
triadic
#AF308C #8CAF30 #308CAF
tetradic
#AF308C #AF9230 #30AF53 #304CAF
square
#AF308C #AF9230 #30AF53 #304CAF
split-complementary
#AF308C #4CAF30 #30AF92
monochromatic
#4F163F #7F2366 #AF308C #CE4EAB #DC7EC2

Accessibility & contrast

On white

5.79
#AF308C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#AF308C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF308C
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF308C#FFFFFF#000000##FFFFFF
##AF308C1.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A588F
Deuteranopia (green-blind)
#626D89
Tritanopia (blue-blind)
#BA335A
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af308c;
/* rgb */ color: rgb(175, 48, 140);
/* oklch */ color: oklch(53.3% 0.188 341.2);
Tailwind
colors: {
  custom: {
    50: '#cb74ae',
    500: '#af308c',
    950: '#000000',
  },
}
SCSS
$custom: #af308c;
$custom-light: #cb74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#af308c",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 140
  },
  "hsl": {
    "h": 316.535,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5331,
    "c": 0.1884,
    "h": 341.2
  },
  "luminance": 0.13121
}

Semantic roles & 50–950 ramp

primary
#AF308C
secondary
#76C48C
accent
#E07248
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF308C

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

Preview Lab → · Contrast checker → · Palette generator →

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