#AF238B#AF238B

#AF238B is a mid, highly saturated pink. Relative luminance 0.122; OKLCH L 52.3% C 0.201 H 341.1°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AF238B
RGBrgb(175, 35, 139)
HSLhsl(315, 67%, 41%)
HSVhsv(315, 80%, 69%)
CMYKcmyk(0%, 80%, 20.6%, 31.4%)
CIE-LABlab(41.50, 63.45, -24.24)
CIE-LCHlch(41.50, 67.92, 339.09°)
OKLaboklab(52.25% 0.1903 -0.0653)
OKLCHoklch(52.25% 0.201 341.1)
XYZxyz(22.9412, 12.1825, 25.5644)
Luminance0.1218 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF238B #23AF47
analogous
#8D23AF #AF238B #AF2345
triadic
#AF238B #8BAF23 #238BAF
tetradic
#AF238B #AF8D23 #23AF47 #2345AF
square
#AF238B #AF8D23 #23AF47 #2345AF
split-complementary
#AF238B #45AF23 #23AF8D
monochromatic
#490F3A #7C1962 #AF238B #D738AE #E16BC3

Accessibility & contrast

On white

6.11
#AF238B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AF238B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF238B
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF238B#FFFFFF#000000##FFFFFF
##AF238B1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30548E
Deuteranopia (green-blind)
#5E6A88
Tritanopia (blue-blind)
#BA2756
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #af238b;
/* rgb */ color: rgb(175, 35, 139);
/* oklch */ color: oklch(52.3% 0.201 341.1);
Tailwind
colors: {
  custom: {
    50: '#cb6fad',
    500: '#af238b',
    950: '#000000',
  },
}
SCSS
$custom: #af238b;
$custom-light: #cb6fad;
$custom-dark: #000000;
JSON
{
  "hex": "#af238b",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 315.429,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.52251,
    "c": 0.20122,
    "h": 341.1
  },
  "luminance": 0.1218
}

Semantic roles & 50–950 ramp

primary
#AF238B
secondary
#66C77F
accent
#EA6A3E
background
#FDF7FA
surface
#FAEDF4
border
#D3C8CE
text
#140810
muted
#837B7F

Preview Lab

Preview with #AF238B

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

Preview Lab → · Contrast checker → · Palette generator →

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