#AF249E#AF249E

#AF249E is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.3% C 0.213 H 333.9°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#AF249E
RGBrgb(175, 36, 158)
HSLhsl(307, 66%, 41%)
HSVhsv(307, 79%, 69%)
CMYKcmyk(0%, 79.4%, 9.7%, 31.4%)
CIE-LABlab(42.53, 65.84, -34.14)
CIE-LCHlch(42.53, 74.17, 332.59°)
OKLaboklab(53.29% 0.1911 -0.0937)
OKLCHoklch(53.29% 0.213 333.9)
XYZxyz(24.4819, 12.8465, 33.5314)
Luminance0.1284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF249E #24AF35
analogous
#7B24AF #AF249E #AF2459
triadic
#AF249E #9EAF24 #249EAF
tetradic
#AF249E #AF7B24 #24AF35 #2459AF
square
#AF249E #AF7B24 #24AF35 #2459AF
split-complementary
#AF249E #59AF24 #24AF7B
monochromatic
#490F42 #7C1A70 #AF249E #D63AC3 #E16DD3

Accessibility & contrast

On white

5.88
#AF249E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#AF249E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF249E
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF249E#FFFFFF#000000##FFFFFF
##AF249E1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F58A1
Deuteranopia (green-blind)
#576B9B
Tritanopia (blue-blind)
#B73360
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #af249e;
/* rgb */ color: rgb(175, 36, 158);
/* oklch */ color: oklch(53.3% 0.213 333.9);
Tailwind
colors: {
  custom: {
    50: '#cb70bb',
    500: '#af249e',
    950: '#000000',
  },
}
SCSS
$custom: #af249e;
$custom-light: #cb70bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af249e",
  "rgb": {
    "r": 175,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 307.338,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53291,
    "c": 0.21286,
    "h": 333.9
  },
  "luminance": 0.12844
}

Semantic roles & 50–950 ramp

primary
#AF249E
secondary
#68C773
accent
#E9543F
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF249E

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

Preview Lab → · Contrast checker → · Palette generator →

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