#AF2BA5#AF2BA5

#AF2BA5 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.211 H 331.4°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF2BA5
RGBrgb(175, 43, 165)
HSLhsl(305, 61%, 43%)
HSVhsv(305, 75%, 69%)
CMYKcmyk(0%, 75.4%, 5.7%, 31.4%)
CIE-LABlab(43.60, 64.90, -36.65)
CIE-LCHlch(43.60, 74.54, 330.54°)
OKLaboklab(54.17% 0.1855 -0.101)
OKLCHoklch(54.17% 0.211 331.4)
XYZxyz(25.3346, 13.5604, 36.8731)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2BA5 #2BAF35
analogous
#772BAF #AF2BA5 #AF2B63
triadic
#AF2BA5 #A5AF2B #2BA5AF
tetradic
#AF2BA5 #AF772B #2BAF35 #2B63AF
square
#AF2BA5 #AF772B #2BAF35 #2B63AF
split-complementary
#AF2BA5 #63AF2B #2BAF77
monochromatic
#4D1348 #7E1F77 #AF2BA5 #D146C7 #DE77D6

Accessibility & contrast

On white

5.66
#AF2BA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF2BA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2BA5
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2BA5#FFFFFF#000000##FFFFFF
##AF2BA51.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5BA8
Deuteranopia (green-blind)
#566DA2
Tritanopia (blue-blind)
#B63B66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2ba5;
/* rgb */ color: rgb(175, 43, 165);
/* oklch */ color: oklch(54.2% 0.211 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb73c0',
    500: '#af2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #af2ba5;
$custom-light: #cb73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ba5",
  "rgb": {
    "r": 175,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 304.545,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54173,
    "c": 0.21123,
    "h": 331.4
  },
  "luminance": 0.13558
}

Semantic roles & 50–950 ramp

primary
#AF2BA5
secondary
#70C577
accent
#E45044
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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