#AF2B9D#AF2B9D

#AF2B9D is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.7% C 0.205 H 334.3°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AF2B9D
RGBrgb(175, 43, 157)
HSLhsl(308, 61%, 43%)
HSVhsv(308, 75%, 69%)
CMYKcmyk(0%, 75.4%, 10.3%, 31.4%)
CIE-LABlab(43.18, 63.68, -32.52)
CIE-LCHlch(43.18, 71.51, 332.95°)
OKLaboklab(53.74% 0.1852 -0.0891)
OKLCHoklch(53.74% 0.205 334.3)
XYZxyz(24.6291, 13.2782, 33.1576)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B9D #2BAF3D
analogous
#7F2BAF #AF2B9D #AF2B5B
triadic
#AF2B9D #9DAF2B #2B9DAF
tetradic
#AF2B9D #AF7F2B #2BAF3D #2B5BAF
square
#AF2B9D #AF7F2B #2BAF3D #2B5BAF
split-complementary
#AF2B9D #5BAF2B #2BAF7F
monochromatic
#4D1345 #7E1F71 #AF2B9D #D146BE #DE77D0

Accessibility & contrast

On white

5.75
#AF2B9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF2B9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B9D
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B9D#FFFFFF#000000##FFFFFF
##AF2B9D1.005.753.665.75
#FFFFFF5.751.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285AA0
Deuteranopia (green-blind)
#5A6D9A
Tritanopia (blue-blind)
#B73762
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2b9d;
/* rgb */ color: rgb(175, 43, 157);
/* oklch */ color: oklch(53.7% 0.205 334.3);
Tailwind
colors: {
  custom: {
    50: '#cb73ba',
    500: '#af2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #af2b9d;
$custom-light: #cb73ba;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b9d",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 308.182,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5374,
    "c": 0.20547,
    "h": 334.3
  },
  "luminance": 0.13276
}

Semantic roles & 50–950 ramp

primary
#AF2B9D
secondary
#70C57C
accent
#E45A44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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