#AF2DB7#AF2DB7

#AF2DB7 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.4% C 0.223 H 325.5°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#AF2DB7
RGBrgb(175, 45, 183)
HSLhsl(297, 61%, 45%)
HSVhsv(297, 75%, 72%)
CMYKcmyk(4.4%, 75.4%, 0%, 28.2%)
CIE-LABlab(44.82, 67.21, -45.37)
CIE-LCHlch(44.82, 81.08, 325.98°)
OKLaboklab(55.37% 0.1836 -0.1263)
OKLCHoklch(55.37% 0.223 325.5)
XYZxyz(27.1642, 14.4114, 46.1415)
Luminance0.1441 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DB7 #35B72D
analogous
#6A2DB7 #AF2DB7 #B72D7A
triadic
#AF2DB7 #B7AF2D #2DB7AF
tetradic
#AF2DB7 #B76A2D #35B72D #2D7AB7
square
#AF2DB7 #B76A2D #35B72D #2D7AB7
split-complementary
#AF2DB7 #7AB72D #2DB76A
monochromatic
#511555 #802186 #AF2DB7 #CC4ED3 #DA7FDF

Accessibility & contrast

On white

5.41
#AF2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#AF2DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DB7
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DB7#FFFFFF#000000##FFFFFF
##AF2DB71.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#4C6FB4
Tritanopia (blue-blind)
#B34671
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2db7;
/* rgb */ color: rgb(175, 45, 183);
/* oklch */ color: oklch(55.4% 0.223 325.5);
Tailwind
colors: {
  custom: {
    50: '#cb74cd',
    500: '#af2db7',
    950: '#000000',
  },
}
SCSS
$custom: #af2db7;
$custom-light: #cb74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2db7",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 296.522,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5537,
    "c": 0.22285,
    "h": 325.5
  },
  "luminance": 0.1441
}

Semantic roles & 50–950 ramp

primary
#AF2DB7
secondary
#7CC878
accent
#E4444D
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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