#AF2DB5#AF2DB5

#AF2DB5 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.3% C 0.221 H 326.1°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#AF2DB5
RGBrgb(175, 45, 181)
HSLhsl(297, 60%, 44%)
HSVhsv(297, 75%, 71%)
CMYKcmyk(3.3%, 75.1%, 0%, 29%)
CIE-LABlab(44.70, 66.87, -44.38)
CIE-LCHlch(44.70, 80.26, 326.43°)
OKLaboklab(55.25% 0.1837 -0.1234)
OKLCHoklch(55.25% 0.221 326.1)
XYZxyz(26.9575, 14.3288, 45.0530)
Luminance0.1433 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DB5 #33B52D
analogous
#6B2DB5 #AF2DB5 #B52D77
triadic
#AF2DB5 #B5AF2D #2DB5AF
tetradic
#AF2DB5 #B56B2D #33B52D #2D77B5
square
#AF2DB5 #B56B2D #33B52D #2D77B5
split-complementary
#AF2DB5 #77B52D #2DB56B
monochromatic
#501553 #802184 #AF2DB5 #CD4DD3 #DB7EDF

Accessibility & contrast

On white

5.43
#AF2DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#AF2DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DB5
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DB5#FFFFFF#000000##FFFFFF
##AF2DB51.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#4D6FB2
Tritanopia (blue-blind)
#B44570
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2db5;
/* rgb */ color: rgb(175, 45, 181);
/* oklch */ color: oklch(55.3% 0.221 326.1);
Tailwind
colors: {
  custom: {
    50: '#cb74cc',
    500: '#af2db5',
    950: '#000000',
  },
}
SCSS
$custom: #af2db5;
$custom-light: #cb74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2db5",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 181
  },
  "hsl": {
    "h": 297.353,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.5525,
    "c": 0.22129,
    "h": 326.1
  },
  "luminance": 0.14327
}

Semantic roles & 50–950 ramp

primary
#AF2DB5
secondary
#7AC776
accent
#E3444B
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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