#AF2B9B#AF2B9B

#AF2B9B is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.6% C 0.204 H 335.1°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#AF2B9B
RGBrgb(175, 43, 155)
HSLhsl(309, 61%, 43%)
HSVhsv(309, 75%, 69%)
CMYKcmyk(0%, 75.4%, 11.4%, 31.4%)
CIE-LABlab(43.08, 63.39, -31.48)
CIE-LCHlch(43.08, 70.77, 333.59°)
OKLaboklab(53.63% 0.185 -0.0861)
OKLCHoklch(53.63% 0.204 335.1)
XYZxyz(24.4598, 13.2105, 32.2657)
Luminance0.1321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2B9B #2BAF3F
analogous
#812BAF #AF2B9B #AF2B59
triadic
#AF2B9B #9BAF2B #2B9BAF
tetradic
#AF2B9B #AF812B #2BAF3F #2B59AF
square
#AF2B9B #AF812B #2BAF3F #2B59AF
split-complementary
#AF2B9B #59AF2B #2BAF81
monochromatic
#4D1344 #7E1F6F #AF2B9B #D146BC #DE77CE

Accessibility & contrast

On white

5.77
#AF2B9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#AF2B9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2B9B
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2B9B#FFFFFF#000000##FFFFFF
##AF2B9B1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A599E
Deuteranopia (green-blind)
#5B6D98
Tritanopia (blue-blind)
#B83661
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2b9b;
/* rgb */ color: rgb(175, 43, 155);
/* oklch */ color: oklch(53.6% 0.204 335.1);
Tailwind
colors: {
  custom: {
    50: '#cb73b9',
    500: '#af2b9b',
    950: '#000000',
  },
}
SCSS
$custom: #af2b9b;
$custom-light: #cb73b9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2b9b",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 309.091,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53634,
    "c": 0.20406,
    "h": 335.1
  },
  "luminance": 0.13208
}

Semantic roles & 50–950 ramp

primary
#AF2B9B
secondary
#70C57D
accent
#E45C44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AF2B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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