#AF2D9C#AF2D9C

#AF2D9C is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.8% C 0.203 H 334.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF2D9C
RGBrgb(175, 45, 156)
HSLhsl(309, 59%, 43%)
HSVhsv(309, 74%, 69%)
CMYKcmyk(0%, 74.3%, 10.9%, 31.4%)
CIE-LABlab(43.35, 62.90, -31.65)
CIE-LCHlch(43.35, 70.42, 333.29°)
OKLaboklab(53.85% 0.1832 -0.0866)
OKLCHoklch(53.85% 0.203 334.7)
XYZxyz(24.6186, 13.3932, 32.7346)
Luminance0.1339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2D9C #2DAF40
analogous
#812DAF #AF2D9C #AF2D5B
triadic
#AF2D9C #9CAF2D #2D9CAF
tetradic
#AF2D9C #AF812D #2DAF40 #2D5BAF
square
#AF2D9C #AF812D #2DAF40 #2D5BAF
split-complementary
#AF2D9C #5BAF2D #2DAF81
monochromatic
#4E1445 #7E2071 #AF2D9C #D049BC #DD7ACE

Accessibility & contrast

On white

5.71
#AF2D9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF2D9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2D9C
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2D9C#FFFFFF#000000##FFFFFF
##AF2D9C1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5A9F
Deuteranopia (green-blind)
#5B6D99
Tritanopia (blue-blind)
#B83862
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2d9c;
/* rgb */ color: rgb(175, 45, 156);
/* oklch */ color: oklch(53.8% 0.203 334.7);
Tailwind
colors: {
  custom: {
    50: '#cb73b9',
    500: '#af2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #af2d9c;
$custom-light: #cb73b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2d9c",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 308.769,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53846,
    "c": 0.20266,
    "h": 334.7
  },
  "luminance": 0.13391
}

Semantic roles & 50–950 ramp

primary
#AF2D9C
secondary
#73C57F
accent
#E25C46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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