#AF2298#AF2298

#AF2298 is a mid, highly saturated purple. Relative luminance 0.125; OKLCH L 52.8% C 0.211 H 336.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#AF2298
RGBrgb(175, 34, 152)
HSLhsl(310, 67%, 41%)
HSVhsv(310, 81%, 69%)
CMYKcmyk(0%, 80.6%, 13.1%, 31.4%)
CIE-LABlab(42.04, 65.49, -31.30)
CIE-LCHlch(42.04, 72.59, 334.46°)
OKLaboklab(52.84% 0.1924 -0.0855)
OKLCHoklch(52.84% 0.211 336)
XYZxyz(23.9191, 12.5273, 30.8580)
Luminance0.1253 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2298 #22AF39
analogous
#7F22AF #AF2298 #AF2251
triadic
#AF2298 #98AF22 #2298AF
tetradic
#AF2298 #AF7F22 #22AF39 #2251AF
square
#AF2298 #AF7F22 #22AF39 #2251AF
split-complementary
#AF2298 #51AF22 #22AF7F
monochromatic
#490E3F #7C186B #AF2298 #D836BE #E269CE

Accessibility & contrast

On white

5.99
#AF2298 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#AF2298 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2298
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2298#FFFFFF#000000##FFFFFF
##AF22981.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24569B
Deuteranopia (green-blind)
#596B95
Tritanopia (blue-blind)
#B82E5D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #af2298;
/* rgb */ color: rgb(175, 34, 152);
/* oklch */ color: oklch(52.8% 0.211 336.0);
Tailwind
colors: {
  custom: {
    50: '#cb6fb6',
    500: '#af2298',
    950: '#000000',
  },
}
SCSS
$custom: #af2298;
$custom-light: #cb6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#af2298",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 309.787,
    "s": 67.464,
    "l": 40.98
  },
  "oklch": {
    "l": 0.52841,
    "c": 0.21051,
    "h": 336
  },
  "luminance": 0.12525
}

Semantic roles & 50–950 ramp

primary
#AF2298
secondary
#65C875
accent
#EA5A3D
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #AF2298

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

Preview Lab → · Contrast checker → · Palette generator →

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