#AF308E#AF308E

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

Color values

HEX#AF308E
RGBrgb(175, 48, 142)
HSLhsl(316, 57%, 44%)
HSVhsv(316, 73%, 69%)
CMYKcmyk(0%, 72.6%, 18.9%, 31.4%)
CIE-LABlab(43.04, 59.88, -23.68)
CIE-LCHlch(43.04, 64.39, 338.42°)
OKLaboklab(53.4% 0.1786 -0.0639)
OKLCHoklch(53.4% 0.19 340.3)
XYZxyz(23.6193, 13.1832, 26.8866)
Luminance0.1318 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF308E #30AF51
analogous
#9030AF #AF308E #AF304E
triadic
#AF308E #8EAF30 #308EAF
tetradic
#AF308E #AF9030 #30AF51 #304EAF
square
#AF308E #AF9030 #30AF51 #304EAF
split-complementary
#AF308E #4EAF30 #30AF90
monochromatic
#4F1640 #7F2367 #AF308E #CE4EAD #DC7EC3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF308E#FFFFFF#000000##FFFFFF
##AF308E1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395991
Deuteranopia (green-blind)
#626D8B
Tritanopia (blue-blind)
#B9345B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af308e;
/* rgb */ color: rgb(175, 48, 142);
/* oklch */ color: oklch(53.4% 0.190 340.3);
Tailwind
colors: {
  custom: {
    50: '#cb74af',
    500: '#af308e',
    950: '#000000',
  },
}
SCSS
$custom: #af308e;
$custom-light: #cb74af;
$custom-dark: #000000;
JSON
{
  "hex": "#af308e",
  "rgb": {
    "r": 175,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 315.591,
    "s": 56.951,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53404,
    "c": 0.18971,
    "h": 340.3
  },
  "luminance": 0.13181
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF308E

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

Preview Lab → · Contrast checker → · Palette generator →

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