#AF308B#AF308B

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

Color values

HEX#AF308B
RGBrgb(175, 48, 139)
HSLhsl(317, 57%, 44%)
HSVhsv(317, 73%, 69%)
CMYKcmyk(0%, 72.6%, 20.6%, 31.4%)
CIE-LABlab(42.91, 59.46, -22.07)
CIE-LCHlch(42.91, 63.42, 339.64°)
OKLaboklab(53.26% 0.1782 -0.0593)
OKLCHoklch(53.26% 0.188 341.6)
XYZxyz(23.3971, 13.0943, 25.7163)
Luminance0.1309 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF308B #30AF54
analogous
#9330AF #AF308B #AF304B
triadic
#AF308B #8BAF30 #308BAF
tetradic
#AF308B #AF9330 #30AF54 #304BAF
square
#AF308B #AF9330 #30AF54 #304BAF
split-complementary
#AF308B #4BAF30 #30AF93
monochromatic
#4F163F #7F2365 #AF308B #CE4EAA #DC7EC1

Accessibility & contrast

On white

5.80
#AF308B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF308B
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF308B#FFFFFF#000000##FFFFFF
##AF308B1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B588E
Deuteranopia (green-blind)
#636D88
Tritanopia (blue-blind)
#BA3259
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af308b;
/* rgb */ color: rgb(175, 48, 139);
/* oklch */ color: oklch(53.3% 0.188 341.6);
Tailwind
colors: {
  custom: {
    50: '#cb74ad',
    500: '#af308b',
    950: '#000000',
  },
}
SCSS
$custom: #af308b;
$custom-light: #cb74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#af308b",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 317.008,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53264,
    "c": 0.18776,
    "h": 341.6
  },
  "luminance": 0.13092
}

Semantic roles & 50–950 ramp

primary
#AF308B
secondary
#76C48D
accent
#E07348
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AF308B

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

Preview Lab → · Contrast checker → · Palette generator →

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