#AF2BA7#AF2BA7

#AF2BA7 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.3% C 0.213 H 330.7°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF2BA7
RGBrgb(175, 43, 167)
HSLhsl(304, 61%, 43%)
HSVhsv(304, 75%, 69%)
CMYKcmyk(0%, 75.4%, 4.6%, 31.4%)
CIE-LABlab(43.70, 65.22, -37.68)
CIE-LCHlch(43.70, 75.32, 329.98°)
OKLaboklab(54.29% 0.1856 -0.1039)
OKLCHoklch(54.29% 0.213 330.7)
XYZxyz(25.5181, 13.6338, 37.8393)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BA7 #2BAF33
analogous
#752BAF #AF2BA7 #AF2B65
triadic
#AF2BA7 #A7AF2B #2BA7AF
tetradic
#AF2BA7 #AF752B #2BAF33 #2B65AF
square
#AF2BA7 #AF752B #2BAF33 #2B65AF
split-complementary
#AF2BA7 #65AF2B #2BAF75
monochromatic
#4D1349 #7E1F78 #AF2BA7 #D146C9 #DE77D7

Accessibility & contrast

On white

5.64
#AF2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF2BA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BA7
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BA7#FFFFFF#000000##FFFFFF
##AF2BA71.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5CAA
Deuteranopia (green-blind)
#556EA4
Tritanopia (blue-blind)
#B63C67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ba7;
/* rgb */ color: rgb(175, 43, 167);
/* oklch */ color: oklch(54.3% 0.213 330.7);
Tailwind
colors: {
  custom: {
    50: '#cb73c1',
    500: '#af2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #af2ba7;
$custom-light: #cb73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ba7",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 303.636,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54285,
    "c": 0.2127,
    "h": 330.7
  },
  "luminance": 0.13632
}

Semantic roles & 50–950 ramp

primary
#AF2BA7
secondary
#70C576
accent
#E44E44
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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